Home
last modified time | relevance | path

Searched refs:stereo (Results 1 – 14 of 14) sorted by relevance

/cts/suite/audio_quality/lib/src/audio/
DAudioSignalFactory.cpp25 int samples, bool stereo) in generateSineWave() argument
27 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateSineWave()
37 if(stereo) { in generateSineWave()
46 int maxPositive, int samples, bool stereo) in generateWhiteNoise() argument
48 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateWhiteNoise()
61 if (stereo) { in generateWhiteNoise()
71 int samples, bool stereo) in generateZeroSound() argument
73 int bufferSize = samples * (stereo? 2 : 1) * BPS; in generateZeroSound()
81 if (stereo) { in generateZeroSound()
DAudioRemote.cpp61 bool AudioRemotePlayback::startPlaybackForRemoteData(int id, bool stereo, int numberRepetition) in startPlaybackForRemoteData() argument
63 return mRemote->startPlayback(stereo, mSamplingRate, mMode, mVolume, id, numberRepetition); in startPlaybackForRemoteData()
75 bool stereo = buffer->isStereo(); in startPlaybackOrRecord() local
76 return mRemote->startRecording(stereo, mSamplingRate, mMode, mVolume, buffer); in startPlaybackOrRecord()
DBuffer.cpp24 Buffer::Buffer(size_t capacity, size_t size, bool stereo) in Buffer() argument
28 mStereo(stereo) in Buffer()
82 bool stereo; in loadFromFile() local
84 stereo = true; in loadFromFile()
86 stereo = false; in loadFromFile()
98 Buffer* buffer = new Buffer(size, size, stereo); in loadFromFile()
DRemoteAudio.cpp231 bool RemoteAudio::startPlayback(bool stereo, int samplingF, int mode, int volume, in startPlayback() argument
247 LOGD("RemoteAudio::startPlayback stereo %d mode %d", stereo, mode); in startPlayback()
249 handler->getParam().mStereo = stereo; in startPlayback()
276 bool RemoteAudio::startRecording(bool stereo, int samplingF, int mode, int volume, in startRecording() argument
287 handler->getParam().mStereo = stereo; in startRecording()
/cts/suite/audio_quality/test/
DRemoteAudioFakeTcpTest.cpp161 bool stereo = false; in TEST_F() local
164 int mode = AudioHardware::EModeVoice | (stereo ? 0x80000000 : 0); in TEST_F()
187 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
194 bool stereo = false; in TEST_F() local
197 int mode = AudioHardware::EModeVoice | (stereo ? 0x80000000 : 0); in TEST_F()
231 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
241 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
251 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
256 bool stereo = false; in TEST_F() local
259 int mode = AudioHardware::EModeVoice | (stereo ? 0x80000000 : 0); in TEST_F()
[all …]
/cts/suite/audio_quality/lib/include/audio/
DAudioSignalFactory.h32 bool stereo = true);
34 int maxPositive, int samples, bool stereo = true);
36 int samples, bool stereo = true);
DRemoteAudio.h51 bool startPlayback(bool stereo, int samplingF, int mode, int volume,
56 bool startRecording(bool stereo, int samplingF, int mode, int volume,
DAudioRemote.h50 bool startPlaybackForRemoteData(int id, bool stereo, int numberRepetition = 1);
DBuffer.h35 explicit Buffer(size_t capacity, size_t size = 0, bool stereo = true);
/cts/suite/audio_quality/test_description/processing/
Dgen_random.py30 def do_gen_random(peakAmpl, durationInMSec, samplingRate, fHigh, stereo=True): argument
32 result = np.zeros(samples * 2 if stereo else samples, dtype=np.int16)
52 if stereo:
Dexample.py45 stereo = stereoInt.astype(np.int16)
52 outputData.append(stereo)
Dcheck_spectrum_playback.py125 stereo=False)
Dcheck_spectrum.py159 stereo=False)
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DAudioProtocol.java238 final boolean stereo = ((mDataBuffer.getInt(2 * 4) & 0x80000000) != 0); in handleStartPlayback()
263 stereo ? AudioFormat.CHANNEL_OUT_STEREO : AudioFormat.CHANNEL_OUT_MONO, in handleStartPlayback()
273 stereo ? AudioFormat.CHANNEL_OUT_STEREO : AudioFormat.CHANNEL_OUT_MONO, in handleStartPlayback()
288 int endMarker = data.capacity()/(stereo ? 4 : 2); in handleStartPlayback()
291 " set.. res " + res + " stereo? " + stereo + " mode " + mode + in handleStartPlayback()
334 final boolean stereo = ((mDataBuffer.getInt(1 * 4) & 0x80000000) != 0); in handleStartRecording()
342 if (stereo) { in handleStartRecording()