Home
last modified time | relevance | path

Searched refs:pcm (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/media/libaudiojni/
Dappendix-b-1-1-buffer-queue.cpp79 SLDataFormat_PCM pcm; in TestPlayMusicBufferQueue() local
146 pcm.formatType = SL_DATAFORMAT_PCM; in TestPlayMusicBufferQueue()
147 pcm.numChannels = 2; in TestPlayMusicBufferQueue()
148 pcm.samplesPerSec = SL_SAMPLINGRATE_44_1; in TestPlayMusicBufferQueue()
149 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in TestPlayMusicBufferQueue()
150 pcm.containerSize = 16; in TestPlayMusicBufferQueue()
151 pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in TestPlayMusicBufferQueue()
152 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in TestPlayMusicBufferQueue()
153 audioSource.pFormat = (void *)&pcm; in TestPlayMusicBufferQueue()
Daudio-track-native.cpp107 SLAndroidDataFormat_PCM_EX pcm; in open() local
108 pcm.formatType = useFloat ? SL_ANDROID_DATAFORMAT_PCM_EX : SL_DATAFORMAT_PCM; in open()
109 pcm.numChannels = numChannels; in open()
110 pcm.sampleRate = sampleRate * 1000; in open()
111 pcm.bitsPerSample = useFloat ? in open()
113 pcm.containerSize = pcm.bitsPerSample; in open()
114 pcm.channelMask = channelCountToMask(numChannels); in open()
115 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in open()
117 pcm.representation = useFloat ? SL_ANDROID_PCM_REPRESENTATION_FLOAT in open()
120 audioSource.pFormat = (void *)&pcm; in open()
Daudio-record-native.cpp110 SLDataFormat_PCM pcm = { in open()
116 SLAndroidDataFormat_PCM_EX pcm; in open() local
117 pcm.formatType = useFloat ? SL_ANDROID_DATAFORMAT_PCM_EX : SL_DATAFORMAT_PCM; in open()
118 pcm.numChannels = numChannels; in open()
119 pcm.sampleRate = sampleRate * 1000; in open()
120 pcm.bitsPerSample = useFloat ? in open()
122 pcm.containerSize = pcm.bitsPerSample; in open()
123 pcm.channelMask = channelCountToMask(numChannels); in open()
124 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in open()
126 pcm.representation = useFloat ? SL_ANDROID_PCM_REPRESENTATION_FLOAT in open()
[all …]
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp212 SLDataFormat_PCM pcm; in AudioPlayerFromPcmBqCreation() local
213 pcm.formatType = SL_DATAFORMAT_PCM; in AudioPlayerFromPcmBqCreation()
214 pcm.numChannels = 2; in AudioPlayerFromPcmBqCreation()
215 pcm.samplesPerSec = SL_SAMPLINGRATE_44_1; in AudioPlayerFromPcmBqCreation()
216 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in AudioPlayerFromPcmBqCreation()
217 pcm.containerSize = 16; in AudioPlayerFromPcmBqCreation()
218 pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in AudioPlayerFromPcmBqCreation()
219 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in AudioPlayerFromPcmBqCreation()
221 audioSource.pFormat = &pcm; in AudioPlayerFromPcmBqCreation()
/cts/suite/audio_quality/lib/src/audio/
DAudioPlaybackLocal.cpp103 pcm_* pcm = (pcm_*)mPcmHandle; in doStop() local
104 ioctl(pcm->fd, SNDRV_PCM_IOCTL_DRAIN); in doStop()
/cts/apps/CtsVerifier/jni/audio_loopback/
Dsles.cpp349 SLDataFormat_PCM pcm; in slesCreateServer() local
356 pcm.formatType = SL_DATAFORMAT_PCM; in slesCreateServer()
357 pcm.numChannels = pSles->channels; in slesCreateServer()
358 pcm.samplesPerSec = pSles->sampleRate * 1000; in slesCreateServer()
359 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in slesCreateServer()
360 pcm.containerSize = 16; in slesCreateServer()
361 pcm.channelMask = pSles->channels == 1 ? SL_SPEAKER_FRONT_CENTER : in slesCreateServer()
363 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in slesCreateServer()
365 audiosrc.pFormat = &pcm; in slesCreateServer()
435 audiosnk.pFormat = &pcm; in slesCreateServer()
/cts/suite/audio_quality/lib/include/audio/
DAudioPlaybackLocal.h40 struct pcm* mPcmHandle;
DAudioRecordingLocal.h40 struct pcm* mPcmHandle;
/cts/tests/tests/media/src/android/media/cts/
DVisualizerTest.java433 private int computeEnergy(byte[] data, boolean pcm) { in computeEnergy() argument
436 if (pcm) { in computeEnergy()