/hardware/libhardware_legacy/audio/ |
H A D | A2dpAudioInterface.h | 52 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount); 59 uint32_t *sampleRate=0, 67 uint32_t *sampleRate, 85 virtual uint32_t sampleRate() const { return 44100; } function in class:android_audio_legacy::A2dpAudioInterface::A2dpAudioStreamOut 90 virtual uint32_t latency() const { return ((1000*bufferSize())/frameSize())/sampleRate() + 200; }
|
H A D | AudioHardwareGeneric.h | 50 virtual uint32_t sampleRate() const { return 44100; } function in class:android_audio_legacy::AudioStreamOutGeneric 84 virtual uint32_t sampleRate() const { return 8000; } function in class:android_audio_legacy::AudioStreamInGeneric 122 uint32_t *sampleRate=0, 130 uint32_t *sampleRate,
|
H A D | AudioHardwareStub.h | 33 virtual uint32_t sampleRate() const { return 44100; } function in class:android_audio_legacy::AudioStreamOutStub 50 virtual uint32_t sampleRate() const { return 8000; } function in class:android_audio_legacy::AudioStreamInStub 81 uint32_t *sampleRate=0, 89 uint32_t *sampleRate,
|
H A D | AudioHardwareInterface.cpp | 113 size_t AudioHardwareBase::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) argument 115 if (sampleRate != 8000) { 116 ALOGW("getInputBufferSize bad sampling rate: %d", sampleRate);
|
H A D | AudioHardwareGeneric.cpp | 68 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 82 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate); 102 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, 122 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics); 207 if (lRate == 0) lRate = sampleRate(); 212 (lRate != sampleRate())) { 215 if (pRate) *pRate = sampleRate(); 252 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); 325 (*pRate != sampleRate())) { 329 *pRate = sampleRate(); 67 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument 101 openInputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) argument [all...] |
H A D | AudioHardwareStub.cpp | 46 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 49 status_t lStatus = out->set(format, channels, sampleRate); 65 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, 74 status_t lStatus = in->set(format, channels, sampleRate, acoustics); 123 if (pRate) *pRate = sampleRate(); 131 usleep(bytes * 1000000 / sizeof(int16_t) / AudioSystem::popCount(channels()) / sampleRate()); 146 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); 177 usleep(bytes * 1000000 / sizeof(int16_t) / AudioSystem::popCount(channels()) / sampleRate()); 189 snprintf(buffer, SIZE, "\tsample rate: %d\n", sampleRate()); 45 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument 64 openInputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) argument
|
H A D | A2dpAudioInterface.cpp | 64 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 68 return mHardwareInterface->openOutputStream(devices, format, channels, sampleRate, status); 82 if ((err = out->set(devices, format, channels, sampleRate)) == NO_ERROR) { 107 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, 110 return mHardwareInterface->openInputStream(devices, format, channels, sampleRate, status, acoustics); 202 size_t A2dpAudioInterface::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) argument 204 return mHardwareInterface->getInputBufferSize(sampleRate, format, channelCount); 247 if (lRate == 0) lRate = sampleRate(); 252 (lRate != sampleRate())){ 255 if (pRate) *pRate = sampleRate(); 63 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument 106 openInputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) argument [all...] |
H A D | AudioDumpInterface.cpp | 60 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 68 outFinal = mFinalInterface->openOutputStream(devices, format, channels, sampleRate, status); 72 lRate = outFinal->sampleRate(); 88 if (sampleRate != 0) { 89 if (*sampleRate != 0) { 90 lRate = *sampleRate; 92 *sampleRate = lRate; 127 uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) 134 inFinal = mFinalInterface->openInputStream(devices, format, channels, sampleRate, status, acoustics); 138 lRate = inFinal->sampleRate(); 59 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument 126 openInputStream(uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) argument 251 getInputBufferSize(uint32_t sampleRate, int format, int channelCount) argument 258 AudioStreamOutDump(AudioDumpInterface *interface, int id, AudioStreamOut* finalStream, uint32_t devices, int format, uint32_t channels, uint32_t sampleRate) argument 312 uint32_t AudioStreamOutDump::sampleRate() const function in class:android::AudioStreamOutDump 419 AudioStreamInDump(AudioDumpInterface *interface, int id, AudioStreamIn* finalStream, uint32_t devices, int format, uint32_t channels, uint32_t sampleRate) argument 515 uint32_t AudioStreamInDump::sampleRate() const function in class:android::AudioStreamInDump [all...] |
/hardware/msm7k/libaudio-qdsp5v2/ |
H A D | AudioHardware.h | 74 uint32_t *sampleRate=0, 81 uint32_t *sampleRate, 88 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount); 106 virtual uint32_t sampleRate() const { return mSampleRate; } function in class:android::AudioHardware::AudioStreamOutQ5V2 111 virtual uint32_t latency() const { return (1000*AUDIO_HW_NUM_OUT_BUF*(bufferSize()/frameSize()))/sampleRate()+AUDIO_HW_OUT_LATENCY_MS; }
|
H A D | AudioHardware.cpp | 63 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 78 status_t rc = out->set(this, devices, format, channels, sampleRate); 103 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, 143 size_t AudioHardware::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) argument 187 if (lRate == 0) lRate = sampleRate(); 192 (lRate != sampleRate())) { 195 if (pRate) *pRate = sampleRate(); 293 usleep(bytes * 1000000 / frameSize() / sampleRate()); 62 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument 102 openInputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustic_flags) argument
|
/hardware/msm7k/libaudio/ |
H A D | AudioHardware.cpp | 158 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 173 status_t lStatus = out->set(this, devices, format, channels, sampleRate); 198 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, 209 status_t lStatus = in->set(this, devices, format, channels, sampleRate, acoustic_flags); 346 size_t AudioHardware::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) argument 631 uint32_t AudioHardware::getInputSampleRate(uint32_t sampleRate) argument 638 delta = abs(sampleRate - inputSamplingRates[i]); 677 if (lRate == 0) lRate = sampleRate(); 682 (lRate != sampleRate())) { 685 if (pRate) *pRate = sampleRate(); 157 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument 197 openInputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustic_flags) argument [all...] |
H A D | AudioHardware.h | 127 uint32_t *sampleRate=0, 135 uint32_t *sampleRate, 142 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount); 154 uint32_t getInputSampleRate(uint32_t sampleRate); 168 virtual uint32_t sampleRate() const { return 44100; } function in class:android::AudioHardware::AudioStreamOutMSM72xx 173 virtual uint32_t latency() const { return (1000*AUDIO_HW_NUM_OUT_BUF*(bufferSize()/frameSize()))/sampleRate()+AUDIO_HW_OUT_LATENCY_MS; } 212 virtual uint32_t sampleRate() const { return mSampleRate; } function in class:android::AudioHardware::AudioStreamInMSM72xx
|
/hardware/msm7k/libaudio-qsd8k/ |
H A D | AudioHardware.h | 192 uint32_t *sampleRate=0, 200 uint32_t *sampleRate, 207 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount); 220 uint32_t getInputSampleRate(uint32_t sampleRate); 234 size_t getBufferSize(uint32_t sampleRate, int channelCount); 245 virtual uint32_t sampleRate() const { return mSampleRate; } function in class:android::AudioHardware::AudioStreamOutMSM72xx 250 virtual uint32_t latency() const { return (1000*AUDIO_HW_NUM_OUT_BUF*(bufferSize()/frameSize()))/sampleRate()+AUDIO_HW_OUT_LATENCY_MS; } 286 virtual uint32_t sampleRate() const { return mSampleRate; } function in class:android::AudioHardware::AudioStreamInMSM72xx
|
H A D | AudioHardware.cpp | 224 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 239 status_t lStatus = out->set(this, devices, format, channels, sampleRate); 264 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, 275 status_t lStatus = in->set(this, devices, format, channels, sampleRate, acoustic_flags); 557 size_t AudioHardware::getBufferSize(uint32_t sampleRate, int channelCount) argument 561 if (sampleRate < 11025) { 563 } else if (sampleRate < 22050) { 565 } else if (sampleRate < 32000) { 567 } else if (sampleRate < 44100) { 577 size_t AudioHardware::getInputBufferSize(uint32_t sampleRate, in argument 223 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument 263 openInputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustic_flags) argument 1506 getInputSampleRate(uint32_t sampleRate) argument [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_enc/inc/ |
H A D | OMX_AacEnc_Utils.h | 247 long sampleRate; /* Samplling frequency in Hz */ member in struct:__anon709
|
/hardware/ti/omap3/omx/audio/src/openmax_il/wma_dec/tests/ |
H A D | WmaDecTest.c | 1733 OMX_U16 sampleRate; local 1749 sampleRate = *((OMX_U16 *)(pBuffer + 46)); 1753 APP_DPRINT("sampleRate %d\n", sampleRate); 1755 pcmBytesPerPacket = (long double)playDuration * (long double) sampleRate / (10000000 * (long double) numPackets);
|