Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/src/android/media/cts/
DAudioTrackNative.java46 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
47 return open(numChannels, 0, sampleRate, useFloat, numBuffers); in open()
50 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument
52 if (nativeOpen(mNativeTrackInJavaObj, numChannels, channelMask, in open()
54 mChannelCount = numChannels; in open()
118 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
120 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test()
123 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
125 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
153 long track, int numChannels, int channelMask, in nativeOpen() argument
[all …]
DAudioRecordNative.java44 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
45 return open(numChannels, 0, sampleRate, useFloat,numBuffers); in open()
48 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument
50 if (nativeOpen(mNativeRecordInJavaObj, numChannels, channelMask, in open()
52 mChannelCount = numChannels; in open()
116 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
118 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test()
121 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
123 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
151 long record, int numChannels, int channelMask, in nativeOpen() argument
[all …]
DAudioRecordTest.java554 final int numChannels = in testTimestamp() local
557 final int bytesPerFrame = numChannels * bytesPerSample; in testTimestamp()
561 final int targetSamples = targetFrames * numChannels; in testTimestamp()
563 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in testTimestamp()
580 final int amount = samplesRead == 0 ? numChannels : in testTimestamp()
776 final int numChannels = in testSynchronizedRecord() local
779 final int bytesPerFrame = numChannels * bytesPerSample; in testSynchronizedRecord()
782 (int)((long)RECORD_TIME_IN_MS * RECORD_SAMPLE_RATE * numChannels / 1000); in testSynchronizedRecord()
784 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in testSynchronizedRecord()
795 int amount = samplesRead == 0 ? numChannels : in testSynchronizedRecord()
[all …]
DAudioNativeTest.java340 int numChannels, int sampleRate, boolean useFloat, in doRecordTest() argument
345 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest()
350 (int)((long)sampleRate * segmentDurationMs * numChannels / 1000); in doRecordTest()
DDecoderTestAacDrc.java219 final int numChannels = decParams.getNumChannels(); in checkClipping() local
220 final int startSample = 2 * 2048 * numChannels; // exclude signal on- & offset to in checkClipping()
228 for (int channel = 0; channel < numChannels; channel++) { in checkClipping()
231 filter.apply(decSamples, channel, numChannels); in checkClipping()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DStreamRecorder.java59 public static int calcNumBufferBytes(int numChannels, int sampleRate, int encoding) { in calcNumBufferBytes() argument
63 if (numChannels == 4) { in calcNumBufferBytes()
69 AudioUtils.countToInPositionMask(numChannels), encoding); in calcNumBufferBytes()
75 public static int calcNumBufferFrames(int numChannels, int sampleRate, int encoding) { in calcNumBufferFrames() argument
76 return calcNumBufferBytes(numChannels, sampleRate, encoding) / in calcNumBufferFrames()
77 AudioUtils.calcFrameSizeInBytes(encoding, numChannels); in calcNumBufferFrames()
DStreamPlayer.java90 private static int calcNumBufferBytes(int sampleRate, int numChannels, int encoding) { in calcNumBufferBytes() argument
92 AudioUtils.countToOutPositionMask(numChannels), in calcNumBufferBytes()
96 private static int calcNumBufferFrames(int sampleRate, int numChannels, int encoding) { in calcNumBufferFrames() argument
97 return calcNumBufferBytes(sampleRate, numChannels, encoding) in calcNumBufferFrames()
98 / AudioUtils.calcFrameSizeInBytes(encoding, numChannels); in calcNumBufferFrames()
DAudioUtils.java81 public static int calcFrameSizeInBytes(int encoding, int numChannels) { in calcFrameSizeInBytes() argument
82 return sampleSizeInBytes(encoding) * numChannels; in calcFrameSizeInBytes()
/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()
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()
DAudioSource.h24 AudioSource(int numChannels);
38 int numChannels) =0;
DWaveTableOscillator.cpp26 WaveTableOscillator::WaveTableOscillator(int numChannels, float* waveTable, in WaveTableOscillator() argument
28 : PeriodicAudioSource(numChannels), in WaveTableOscillator()
DAudioRecorder.cpp87 void AudioRecorder::Open(int numChannels, AudioSink* sink) { in Open() argument
89 numChannels_ = numChannels; in Open()
136 pcm.numChannels = numChannels_; in Open()
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;
DAudioPlayer.cpp130 SLresult AudioPlayer::Open(int numChannels, AudioSource* source) { in Open() argument
135 numChannels_ = numChannels; in Open()
DPeriodicAudioSource.h26 PeriodicAudioSource(int numChannels);
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);
/cts/tests/tests/media/libaudiojni/
Daudio-record-native.cpp80 status_t open(uint32_t numChannels, in open() argument
124 pcm.numChannels = numChannels; in open()
174 * numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in open()
468 jint numChannels, jint channelMask, jint sampleRate, in Java_android_media_cts_AudioRecordNative_nativeTest() argument
471 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_cts_AudioRecordNative_nativeTest()
477 res = record.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_cts_AudioRecordNative_nativeTest()
515 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_cts_AudioRecordNative_nativeOpen() argument
521 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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/
DUSBDeviceInfoHelper.java65 public static int getIndexedChanMask(int numChannels) { in getIndexedChanMask() argument
66 return 0x80000000 | numChannels; in getIndexedChanMask()
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp160 formatPcmSnk.numChannels = 1; in PcmBqSinkInitialization()
211 pcm.numChannels = 2; in AudioPlayerFromPcmBqCreation()

12