Home
last modified time | relevance | path

Searched refs:numChannels (Results 1 – 25 of 26) sorted by relevance

12

/cts/tests/tests/media/src/android/media/cts/
DAudioTrackNative.java45 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
46 return open(numChannels, 0, sampleRate, useFloat, numBuffers); in open()
49 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument
51 if (nativeOpen(mNativeTrackInJavaObj, numChannels, channelMask, in open()
53 mChannelCount = numChannels; in open()
117 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
119 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test()
122 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
124 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
152 long track, int numChannels, int channelMask, in nativeOpen() argument
[all …]
DAudioRecordNative.java42 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
43 return open(numChannels, 0, sampleRate, useFloat,numBuffers); in open()
46 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument
48 if (nativeOpen(mNativeRecordInJavaObj, numChannels, channelMask, in open()
50 mChannelCount = numChannels; in open()
110 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
112 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test()
115 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
117 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
145 long record, int numChannels, int channelMask, in nativeOpen() argument
[all …]
DAudioRecordTest.java495 final int numChannels = in testTimestamp() local
498 final int bytesPerFrame = numChannels * bytesPerSample; in testTimestamp()
502 final int targetSamples = targetFrames * numChannels; in testTimestamp()
504 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in testTimestamp()
519 int amount = samplesRead == 0 ? numChannels : in testTimestamp()
644 final int numChannels = in testSynchronizedRecord() local
647 final int bytesPerFrame = numChannels * bytesPerSample; in testSynchronizedRecord()
650 (int)((long)RECORD_TIME_IN_MS * RECORD_SAMPLE_RATE * numChannels / 1000); in testSynchronizedRecord()
652 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in testSynchronizedRecord()
663 int amount = samplesRead == 0 ? numChannels : in testSynchronizedRecord()
[all …]
DAudioNativeTest.java263 int numChannels, int sampleRate, boolean useFloat, in doRecordTest() argument
268 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest()
273 (int)((long)sampleRate * segmentDurationMs * numChannels / 1000); in doRecordTest()
DAudioHelper.java442 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
443 if (super.open(numChannels, sampleRate, useFloat, numBuffers)) { in open()
444 if (!mTrack.open(numChannels, sampleRate, useFloat, 2 /* numBuffers */)) { in open()
DAudioTrack_ListenerTest.java156 final int numChannels = AudioFormat.channelCountFromOutChannelMask(TEST_CONF); in doTest() local
158 final int bytesPerFrame = numChannels * bytesPerSample; in doTest()
DDecoderTest.java1201 this.numChannels = 0;
1206 return this.numChannels;
1213 public void setNumChannels(int numChannels) {
1214 this.numChannels = numChannels;
1221 private int numChannels;
/cts/tests/tests/media/libndkaudio/
DPeriodicAudioSource.cpp21 PeriodicAudioSource::PeriodicAudioSource(int numChannels) in PeriodicAudioSource() argument
22 : AudioSource(numChannels), targetFreq_(1000.0f) { in PeriodicAudioSource()
DAudioSource.cpp25 AudioSource::AudioSource(int numChannels) in AudioSource() argument
26 : numChannels_(numChannels), in AudioSource()
DAudioSource.h24 AudioSource(int numChannels);
38 int numChannels) =0;
Dcom_android_ndkaudio_AudioPlayer.cpp29 static int numChannels = 2; variable
46 waveTableSource = new WaveTableOscillator(numChannels, waveTable, waveTableSize); in Java_com_android_ndkaudio_AudioPlayer_Create()
49 nativePlayer->Open(numChannels, waveTableSource); in Java_com_android_ndkaudio_AudioPlayer_Create()
DWaveTableOscillator.cpp26 WaveTableOscillator::WaveTableOscillator(int numChannels, float* waveTable, in WaveTableOscillator() argument
28 : PeriodicAudioSource(numChannels), in WaveTableOscillator()
Dcom_android_ndkaudio_AudioRecorder.cpp26 static int numChannels = 2; variable
38 nativeRecorder->Open(numChannels, 0); in Java_com_android_ndkaudio_AudioRecorder_Create()
DAudioSink.h27 virtual bool put(float * buff, int numFrames, int numChannels) =0;
DPeriodicAudioSource.h26 PeriodicAudioSource(int numChannels);
DAudioRecorder.cpp87 void AudioRecorder::Open(int numChannels, AudioSink* sink) { in Open() argument
89 numChannels_ = numChannels; in Open()
136 pcm.numChannels = numChannels_; in Open()
DWaveTableOscillator.h30 WaveTableOscillator(int numChannels, float* waveTable, int waveTableSize);
DAudioRecorder.h32 void Open(int numChannels, AudioSink* sink);
DAudioPlayer.h32 SLresult Open(int numChannels, AudioSource* filler);
DAudioPlayer.cpp130 SLresult AudioPlayer::Open(int numChannels, AudioSource* source) { in Open() argument
135 numChannels_ = numChannels; in Open()
/cts/tests/tests/media/libaudiojni/
Daudio-record-native.cpp78 status_t open(uint32_t numChannels, in open() argument
122 pcm.numChannels = numChannels; in open()
172 * numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in open()
441 jint numChannels, jint channelMask, jint sampleRate, in Java_android_media_cts_AudioRecordNative_nativeTest() argument
444 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioRecordNative_nativeTest()
450 res = record.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioRecordNative_nativeTest()
488 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_cts_AudioRecordNative_nativeOpen() argument
494 return (jint) record->open(numChannels, channelMask, sampleRate, useFloat == JNI_TRUE, in Java_android_media_cts_AudioRecordNative_nativeOpen()
Daudio-track-native.cpp73 status_t open(jint numChannels, jint channelMask, in open() argument
109 pcm.numChannels = numChannels; in open()
379 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, in Java_android_media_cts_AudioTrackNative_nativeTest() argument
383 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioTrackNative_nativeTest()
389 res = track.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioTrackNative_nativeTest()
428 jint numChannels, jint channelMask, jint sampleRate, in Java_android_media_cts_AudioTrackNative_nativeOpen() argument
435 return (jint) track->open(numChannels, in Java_android_media_cts_AudioTrackNative_nativeOpen()
Dappendix-b-1-1-buffer-queue.cpp147 pcm.numChannels = 2; in TestPlayMusicBufferQueue()
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp163 formatPcmSnk.numChannels = 1; in PcmBqSinkInitialization()
214 pcm.numChannels = 2; in AudioPlayerFromPcmBqCreation()
/cts/apps/CtsVerifier/jni/audio_loopback/
Dsles.cpp375 pcm.numChannels = pSles->channels; in slesCreateServer()

12