Searched refs:pcm (Results 1 – 9 of 9) sorted by relevance
79 SLDataFormat_PCM pcm; in TestPlayMusicBufferQueue() local146 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()
107 SLAndroidDataFormat_PCM_EX pcm; in open() local108 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()
110 SLDataFormat_PCM pcm = { in open()116 SLAndroidDataFormat_PCM_EX pcm; in open() local117 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 …]
212 SLDataFormat_PCM pcm; in AudioPlayerFromPcmBqCreation() local213 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()
103 pcm_* pcm = (pcm_*)mPcmHandle; in doStop() local104 ioctl(pcm->fd, SNDRV_PCM_IOCTL_DRAIN); in doStop()
349 SLDataFormat_PCM pcm; in slesCreateServer() local356 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()
40 struct pcm* mPcmHandle;
433 private int computeEnergy(byte[] data, boolean pcm) { in computeEnergy() argument436 if (pcm) { in computeEnergy()