/frameworks/wilhelm/src/itf/ |
D | IMuteSolo.c | 33 SLuint8 numChannels = ap->mNumChannels; in IMuteSolo_SetChannelMute() local 34 if (1 >= numChannels) { in IMuteSolo_SetChannelMute() 37 } else if (numChannels <= chan) { in IMuteSolo_SetChannelMute() 73 SLuint8 numChannels = ap->mNumChannels; in IMuteSolo_GetChannelMute() local 74 if (1 >= numChannels) { in IMuteSolo_GetChannelMute() 77 } else if (numChannels <= chan) { in IMuteSolo_GetChannelMute() 105 SLuint8 numChannels = ap->mNumChannels; in IMuteSolo_SetChannelSolo() local 106 if (1 >= numChannels) { in IMuteSolo_SetChannelSolo() 109 } else if (numChannels <= chan) { in IMuteSolo_SetChannelSolo() 145 SLuint8 numChannels = ap->mNumChannels; in IMuteSolo_GetChannelSolo() local [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_poly_phase_synthesis.cpp | 123 int32 numChannels, in pvmp3_poly_phase_synthesis() argument 155 numChannels); in pvmp3_poly_phase_synthesis() 171 ptr_out + (numChannels << 5), in pvmp3_poly_phase_synthesis() 172 numChannels); in pvmp3_poly_phase_synthesis() 174 ptr_out += (numChannels << 6); in pvmp3_poly_phase_synthesis()
|
D | pvmp3_polyphase_filter_window.cpp | 117 int32 numChannels) in pvmp3_polyphase_filter_window() argument 198 int32 k = j << (numChannels - 1); in pvmp3_polyphase_filter_window() 200 outPcm[(numChannels<<5) - k] = saturate16(sum2 >> 6); in pvmp3_polyphase_filter_window() 233 outPcm[(SUBBANDS_NUMBER/2)<<(numChannels-1)] = saturate16(sum2 >> 6); in pvmp3_polyphase_filter_window()
|
D | pvmp3_poly_phase_synthesis.h | 90 int32 numChannels,
|
D | pvmp3_polyphase_filter_window.h | 123 int32 numChannels);
|
/frameworks/wilhelm/tests/listening/ |
D | slesTest_playMuteSolo.cpp | 107 SLuint8 numChannels = 0; in PlayEventCallback() local 108 SLresult res = (*muteSolo)->GetNumChannels(muteSolo, &numChannels); ExitOnError(res); in PlayEventCallback() 117 if (numChannels > 1) { // SLMuteSoloItf only works if more than one channel in PlayEventCallback() 137 if (numChannels > 1) { // SLMuteSoloItf only works if more than one channel in PlayEventCallback() 278 SLuint8 numChannels = 123; in TestPlayUri() local 279 result = (*muteSoloItf)->GetNumChannels(muteSoloItf, &numChannels); in TestPlayUri() 281 result, numChannels); in TestPlayUri() 330 numChannels = 123; in TestPlayUri() 331 result = (*muteSoloItf)->GetNumChannels(muteSoloItf, &numChannels); in TestPlayUri() 333 result, numChannels); in TestPlayUri() [all …]
|
/frameworks/wilhelm/tests/sandbox/ |
D | configbq.c | 28 SLuint8 numChannels; member 98 for (format = formats; format->numChannels; ++format) { in main() 100 printf("Channels: %d, sample rate: %u, bits: %u\n", format->numChannels, in main() 109 format_pcm.numChannels = format->numChannels; in main() 150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) / in main() 154 if (2 == format->numChannels) { in main() 166 assert(1 == format->numChannels); in main()
|
D | srcsink.c | 44 format_pcm.numChannels = 2; in main() 109 format_pcm.numChannels = 0; in main() 114 format_pcm.numChannels = 3; in main() 119 format_pcm.numChannels = 2; in main() 178 format_pcm.numChannels = 1; in main() 190 format_pcm.numChannels = 2; in main()
|
D | intbufq.c | 113 pcm.numChannels = 2; in main() 140 SLuint8 numChannels = 123; in main() local 141 result = (*playerMuteSolo)->GetNumChannels(playerMuteSolo, &numChannels); in main() 142 assert(2 == numChannels); in main()
|
/frameworks/av/media/libstagefright/codecs/aacdec/ |
D | SoftAAC2.cpp | 251 aacParams->nChannels = mStreamInfo->numChannels; in internalGetParameter() 288 pcmParams->nChannels = mStreamInfo->numChannels; in internalGetParameter() 600 if (mStreamInfo->sampleRate && mStreamInfo->numChannels) { in onQueueFilled() 603 mStreamInfo->numChannels); in onQueueFilled() 692 INT prevNumChannels = mStreamInfo->numChannels; in onQueueFilled() 711 (mStreamInfo->frameSize * mStreamInfo->numChannels)) { in onQueueFilled() 742 mStreamInfo->frameSize * sizeof(int16_t) * mStreamInfo->numChannels; in onQueueFilled() 746 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in onQueueFilled() 757 mStreamInfo->frameSize * mStreamInfo->numChannels)) { in onQueueFilled() 796 if (!mStreamInfo->sampleRate || !mStreamInfo->numChannels) { in onQueueFilled() [all …]
|
D | DrcPresModeWrap.cpp | 96 if (mStreamNrOutChan != pStreamInfo->numChannels) { in submitStreamData() 97 mStreamNrOutChan = pStreamInfo->numChannels; in submitStreamData()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | APacketSource.cpp | 471 int32_t sampleRate, numChannels; in APacketSource() local 473 desc.c_str(), &sampleRate, &numChannels); in APacketSource() 476 mFormat->setInt32(kKeyChannelCount, numChannels); in APacketSource() 487 int32_t sampleRate, numChannels; in APacketSource() local 489 desc.c_str(), &sampleRate, &numChannels); in APacketSource() 492 mFormat->setInt32(kKeyChannelCount, numChannels); in APacketSource() 494 if (sampleRate != 8000 || numChannels != 1) { in APacketSource() 500 int32_t sampleRate, numChannels; in APacketSource() local 502 desc.c_str(), &sampleRate, &numChannels); in APacketSource() 505 mFormat->setInt32(kKeyChannelCount, numChannels); in APacketSource() [all …]
|
D | ARawAudioAssembler.cpp | 136 int32_t sampleRate, numChannels; in MakeFormat() local 138 desc, &sampleRate, &numChannels); in MakeFormat() 141 format->setInt32(kKeyChannelCount, numChannels); in MakeFormat()
|
D | ASessionDescription.cpp | 278 const char *desc, int32_t *timescale, int32_t *numChannels) { in ParseFormatDesc() argument 289 *numChannels = 1; in ParseFormatDesc() 297 *numChannels = x; in ParseFormatDesc()
|
D | AMPEG4ElementaryAssembler.cpp | 189 int32_t sampleRate, numChannels; in AMPEG4ElementaryAssembler() local 191 desc.c_str(), &sampleRate, &numChannels); in AMPEG4ElementaryAssembler() 193 mChannelConfig = numChannels; in AMPEG4ElementaryAssembler()
|
/frameworks/av/cmds/stagefright/ |
D | SineSource.cpp | 12 SineSource::SineSource(int32_t sampleRate, int32_t numChannels) in SineSource() argument 15 mNumChannels(numChannels), in SineSource() 18 CHECK(numChannels == 1 || numChannels == 2); in SineSource()
|
/frameworks/wilhelm/src/ |
D | data.c | 372 if (pDataFormat->mPCM.numChannels == 0) { in checkDataFormat() 374 } else if (pDataFormat->mPCM.numChannels > SL_ANDROID_SPEAKER_COUNT_MAX) { in checkDataFormat() 378 SL_LOGE("%s: numChannels=%u", name, (unsigned) pDataFormat->mPCM.numChannels); in checkDataFormat() 441 pDataFormat->mPCM.numChannels); in checkDataFormat() 449 ? sles_channel_out_mask_from_count(pDataFormat->mPCM.numChannels) in checkDataFormat() 450 : sles_channel_in_mask_from_count(pDataFormat->mPCM.numChannels); in checkDataFormat() 453 "requested speaker count of %u", pDataFormat->mPCM.numChannels); in checkDataFormat() 460 pDataFormat->mPCM.numChannels); in checkDataFormat() 466 if (count != pDataFormat->mPCM.numChannels) { in checkDataFormat() 469 pDataFormat->mPCM.numChannels, in checkDataFormat() [all …]
|
/frameworks/base/media/jni/soundpool/ |
D | SoundPool.cpp | 504 uint32_t *rate, int *numChannels, audio_format_t *audioFormat, in decode() argument 638 !AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_CHANNEL_COUNT, numChannels)) { in decode() 655 int numChannels; in doLoad() local 661 status = decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format, in doLoad() 671 mHeap->getBase(), mSize, sampleRate, numChannels); in doLoad() 679 if ((numChannels < 1) || (numChannels > FCC_8)) { in doLoad() 680 ALOGE("Sample channel count (%d) out of range", numChannels); in doLoad() 687 mNumChannels = numChannels; in doLoad() 738 int numChannels = sample->numChannels(); in play() local 745 ? numChannels * audio_bytes_per_sample(format) : 1; in play() [all …]
|
/frameworks/av/include/media/stagefright/ |
D | ACodec.h | 113 static status_t getOMXChannelMapping(size_t numChannels, OMX_AUDIO_CHANNELTYPE map[]); 456 int32_t numChannels, int32_t sampleRate, int32_t bitRate, 461 status_t setupAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate); 463 status_t setupEAC3Codec(bool encoder, int32_t numChannels, int32_t sampleRate); 469 status_t setupG711Codec(bool encoder, int32_t sampleRate, int32_t numChannels); 472 bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel); 475 OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels,
|
/frameworks/av/media/libstagefright/ |
D | MidiExtractor.cpp | 180 trackMetadata->setInt32(kKeyChannelCount, mEasConfig->numChannels); in MidiEngine() 208 * mEasConfig->mixBufferSize * mEasConfig->numChannels * NUM_COMBINE_BUFFERS; in allocateBuffers() 252 p += numRendered * mEasConfig->numChannels; in readBuffer() 253 numBytesOutput += numRendered * mEasConfig->numChannels * sizeof(EAS_PCM); in readBuffer()
|
D | AudioPlayer.cpp | 129 int32_t numChannels, channelMask; in start() local 130 success = format->findInt32(kKeyChannelCount, &numChannels); in start() 135 ALOGI_IF(numChannels > 2, in start() 136 "source format didn't specify channel mask, using (%d) channel order", numChannels); in start() 192 mSampleRate, numChannels, channelMask, audioFormat, in start() 234 audio_channel_out_mask_from_count(numChannels) : channelMask; in start()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
D | ChannelHelper.java | 275 private static String toString(WifiNative.ChannelSettings[] channels, int numChannels) { in toString() argument 282 for (int c = 0; c < numChannels; c++) { in toString() 284 if (c != numChannels - 1) { in toString()
|
/frameworks/av/media/libmedia/ |
D | JetPlayer.cpp | 91 audio_channel_out_mask_from_count(pLibConfig->numChannels), in init() 168 new EAS_PCM[pLibConfig->mixBufferSize * pLibConfig->numChannels * MIX_NUM_BUFFERS]; in render() 209 p += count * pLibConfig->numChannels; in render() 210 num_output += count * pLibConfig->numChannels * sizeof(EAS_PCM); in render()
|
/frameworks/base/media/java/android/media/ |
D | MediaRecorder.java | 709 public void setAudioChannels(int numChannels) { in setAudioChannels() argument 710 if (numChannels <= 0) { in setAudioChannels() 713 setParameter("audio-param-number-of-channels=" + numChannels); in setAudioChannels()
|
/frameworks/wilhelm/src/android/ |
D | AudioRecorder_to_android.cpp | 185 ar->mNumChannels = df_pcm->numChannels; in android_audioRecorder_checkSourceSink() 440 df_pcm->numChannels, in android_audioRecorder_realize() 453 channelMask = audio_channel_in_mask_from_count(df_pcm->numChannels); in android_audioRecorder_realize() 457 df_pcm->numChannels); in android_audioRecorder_realize()
|