Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackNative.java43 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
44 return open(numChannels, 0, sampleRate, useFloat, numBuffers); in open()
47 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument
49 if (nativeOpen(mNativeTrackInJavaObj, numChannels, channelMask, in open()
51 mChannelCount = numChannels; in open()
115 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
117 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test()
120 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
122 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
150 long track, int numChannels, int channelMask, in nativeOpen() argument
[all …]
DAudioRecordNative.java41 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
42 return open(numChannels, 0, sampleRate, useFloat,numBuffers); in open()
45 public boolean open(int numChannels, int channelMask, int sampleRate, in open() argument
47 if (nativeOpen(mNativeRecordInJavaObj, numChannels, channelMask, in open()
49 mChannelCount = numChannels; in open()
113 public static boolean test(int numChannels, int sampleRate, boolean useFloat, in test() argument
115 return test(numChannels, 0, sampleRate, useFloat, msecPerBuffer, numBuffers); in test()
118 public static boolean test(int numChannels, int channelMask, int sampleRate, boolean useFloat, in test() argument
120 return nativeTest(numChannels, channelMask, sampleRate, useFloat, msecPerBuffer, numBuffers) in test()
148 long record, int numChannels, int channelMask, in nativeOpen() argument
[all …]
DAudioNativeTest.java351 int numChannels, int sampleRate, boolean useFloat, in doRecordTest() argument
356 assertTrue(TEST_NAME, record.open(numChannels, sampleRate, useFloat, in doRecordTest()
361 (int)((long)sampleRate * segmentDurationMs * numChannels / 1000); in doRecordTest()
409 public boolean open(int numChannels, int sampleRate, boolean useFloat, int numBuffers) { in open() argument
410 if (super.open(numChannels, sampleRate, useFloat, numBuffers)) { in open()
411 if (!mTrack.open(numChannels, sampleRate, useFloat, 2 /* numBuffers */)) { in open()
DMediaSyncEventTest.java153 final int numChannels = in testSynchronizedRecord() local
156 final int bytesPerFrame = numChannels * bytesPerSample; in testSynchronizedRecord()
159 (int)((long)RECORD_TIME_IN_MS * RECORD_SAMPLE_RATE * numChannels / 1000); in testSynchronizedRecord()
161 final int BUFFER_SAMPLES = BUFFER_FRAMES * numChannels; in testSynchronizedRecord()
172 int amount = samplesRead == 0 ? numChannels : in testSynchronizedRecord()
/cts/tests/tests/media/audio/jni/
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;
DAudioPlayer_jni.cpp27 static int numChannels = 2; variable
44 waveTableSource = new WaveTableOscillator(numChannels, waveTable, waveTableSize); in Java_android_media_audio_cts_AudioPlayer_Create()
47 nativePlayer->Open(numChannels, waveTableSource); in Java_android_media_audio_cts_AudioPlayer_Create()
DWaveTableOscillator.cpp26 WaveTableOscillator::WaveTableOscillator(int numChannels, float* waveTable, in WaveTableOscillator() argument
28 : PeriodicAudioSource(numChannels), in WaveTableOscillator()
DAudioSink.h27 virtual bool put(float * buff, int numFrames, int numChannels) =0;
DPeriodicAudioSource.h26 PeriodicAudioSource(int numChannels);
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_audio_cts_AudioRecordNative_nativeTest() argument
471 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_audio_cts_AudioRecordNative_nativeTest()
477 res = record.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_audio_cts_AudioRecordNative_nativeTest()
515 jint numChannels, jint channelMask, jint sampleRate, jboolean useFloat, jint numBuffers) in Java_android_media_audio_cts_AudioRecordNative_nativeOpen() argument
521 return (jint) record->open(numChannels, channelMask, sampleRate, useFloat == JNI_TRUE, in Java_android_media_audio_cts_AudioRecordNative_nativeOpen()
DAudioRecorder_jni.cpp24 static int numChannels = 2; variable
36 nativeRecorder->Open(numChannels, 0); in Java_android_media_audio_cts_AudioRecorder_Create()
DWaveTableOscillator.h30 WaveTableOscillator(int numChannels, float* waveTable, int waveTableSize);
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_audio_cts_AudioTrackNative_nativeTest() argument
383 const size_t frameSize = numChannels * (useFloat ? sizeof(float) : sizeof(int16_t)); in Java_android_media_audio_cts_AudioTrackNative_nativeTest()
389 res = track.open(numChannels, channelMask, sampleRate, useFloat, numBuffers); in Java_android_media_audio_cts_AudioTrackNative_nativeTest()
428 jint numChannels, jint channelMask, jint sampleRate, in Java_android_media_audio_cts_AudioTrackNative_nativeOpen() argument
435 return (jint) track->open(numChannels, in Java_android_media_audio_cts_AudioTrackNative_nativeOpen()
/cts/apps/CtsVerifier/jni/megaaudio/recorder/
DAudioSink.h24 virtual void init(int numFrames, int numChannels) {} in init() argument
28 virtual void push(float* audioData, int numFrames, int numChannels) = 0;
DAppCallbackAudioSink.cpp32 void AppCallbackAudioSink::init(int numFrames, int numChannels) { in init() argument
40 mAudioDataArrayLength = numChannels * numFrames; in init()
67 void AppCallbackAudioSink::push(float* audioData, int numFrames, int numChannels) { in push() argument
77 env->SetFloatArrayRegion(mAudioDataArray, 0, numFrames * numChannels, audioData); in push()
DAppCallbackAudioSink.h28 virtual void init(int numFrames, int numChannels) override;
32 virtual void push(float* audioData, int numFrames, int numChannels) override;
DDefaultAudioSink.h29 virtual void push(float* audioData, int numChannels, int numFrames) ;
DDefaultAudioSink.cpp32 void DefaultAudioSink::push(float* audioData, int numChannels, int numFrames) { in push() argument
/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/apps/CtsVerifier/src/com/android/cts/verifier/audio/analyzers/
DSignalAnalyzer.java33 void analyzeBuffer(float[] audioData, int numChannels, int numFrames); in analyzeBuffer() argument
DMagnitudeAnalyzer.java43 public void analyzeBuffer(float[] audioData, int numChannels, int numFrames) { in analyzeBuffer() argument
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/recorder/sinks/
DNopAudioSink.java22 public void push(float[] audioData, int numFrames, int numChannels) { in push() argument
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/duplex/
DDuplexAudioManager.java109 public void setNumPlayerChannels(int numChannels) { in setNumPlayerChannels() argument
110 mNumPlayerChannels = numChannels; in setNumPlayerChannels()
123 public void setNumRecorderChannels(int numChannels) { in setNumRecorderChannels() argument
124 mNumRecorderChannels = numChannels; in setNumRecorderChannels()

12