Home
last modified time | relevance | path

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

/cts/tests/tests/media/libndkaudio/
DAudioRecorder.cpp134 SLAndroidDataFormat_PCM_EX pcm; in Open() local
135 pcm.formatType = SL_ANDROID_DATAFORMAT_PCM_EX; in Open()
136 pcm.numChannels = numChannels_; in Open()
137 pcm.sampleRate = sampleRate_ * 1000; // milliHz in Open()
138 pcm.bitsPerSample = 32; in Open()
139 pcm.containerSize = 32; in Open()
140 pcm.channelMask = chanCountToChanMask(numChannels_); in Open()
141 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in Open()
142 pcm.representation = SL_ANDROID_PCM_REPRESENTATION_FLOAT; in Open()
146 recDest.pFormat = (void * ) &pcm; in Open()
/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-record-native.cpp116 SLDataFormat_PCM pcm = { in open()
122 SLAndroidDataFormat_PCM_EX pcm; in open() local
123 pcm.formatType = useFloat ? SL_ANDROID_DATAFORMAT_PCM_EX : SL_DATAFORMAT_PCM; in open()
124 pcm.numChannels = numChannels; in open()
125 pcm.sampleRate = sampleRate * 1000; in open()
126 pcm.bitsPerSample = useFloat ? in open()
128 pcm.containerSize = pcm.bitsPerSample; in open()
129 pcm.channelMask = channelMask; in open()
130 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in open()
132 pcm.representation = useFloat ? SL_ANDROID_PCM_REPRESENTATION_FLOAT in open()
[all …]
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 = channelMask; 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()
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp209 SLDataFormat_PCM pcm; in AudioPlayerFromPcmBqCreation() local
210 pcm.formatType = SL_DATAFORMAT_PCM; in AudioPlayerFromPcmBqCreation()
211 pcm.numChannels = 2; in AudioPlayerFromPcmBqCreation()
212 pcm.samplesPerSec = SL_SAMPLINGRATE_44_1; in AudioPlayerFromPcmBqCreation()
213 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16; in AudioPlayerFromPcmBqCreation()
214 pcm.containerSize = 16; in AudioPlayerFromPcmBqCreation()
215 pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT; in AudioPlayerFromPcmBqCreation()
216 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN; in AudioPlayerFromPcmBqCreation()
218 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/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.java441 private int computeEnergy(byte[] data, boolean pcm) { in computeEnergy() argument
444 if (pcm) { in computeEnergy()