/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamLegacy.cpp | 89 AudioTrack::Buffer *audioBuffer = static_cast<AudioTrack::Buffer *>(info); in processCallbackCommon() local 91 audioBuffer->size = 0; // silence the buffer in processCallbackCommon() 93 if (audioBuffer->frameCount == 0) { in processCallbackCommon() 99 int32_t byteCount = audioBuffer->frameCount * getBytesPerFrame(); in processCallbackCommon() 101 (uint8_t *) audioBuffer->raw, byteCount); in processCallbackCommon() 104 callbackResult = callDataCallbackFrames((uint8_t *)audioBuffer->raw, in processCallbackCommon() 105 audioBuffer->frameCount); in processCallbackCommon() 108 audioBuffer->size = audioBuffer->frameCount * getBytesPerFrame(); in processCallbackCommon() 110 audioBuffer->size = 0; in processCallbackCommon()
|
/frameworks/base/media/java/android/media/ |
D | MediaSync.java | 131 @NonNull MediaSync sync, @NonNull ByteBuffer audioBuffer, int bufferId); in onAudioBufferConsumed() argument 536 AudioBuffer audioBuffer = mAudioBuffers.get(0); in postRenderAudio() 537 int size = audioBuffer.mByteBuffer.remaining(); in postRenderAudio() 547 audioBuffer.mByteBuffer, in postRenderAudio() 551 if (audioBuffer.mPresentationTimeUs != -1) { in postRenderAudio() 553 size, audioBuffer.mPresentationTimeUs); in postRenderAudio() 554 audioBuffer.mPresentationTimeUs = -1; in postRenderAudio() 558 postReturnByteBuffer(audioBuffer); in postRenderAudio() 579 private final void postReturnByteBuffer(@NonNull final AudioBuffer audioBuffer) { in postReturnByteBuffer() argument 596 callback.onAudioBufferConsumed(sync, audioBuffer.mByteBuffer, in postReturnByteBuffer() [all …]
|
D | AudioRecord.java | 1267 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes) { in read() argument 1268 return read(audioBuffer, sizeInBytes, READ_BLOCKING); in read() 1300 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes, @ReadMode int readMode) { in read() argument 1310 if ( (audioBuffer == null) || (sizeInBytes < 0) ) { in read() 1314 return native_read_in_direct_buffer(audioBuffer, sizeInBytes, readMode == READ_BLOCKING); in read()
|
/frameworks/av/media/libaudioclient/ |
D | AudioRecord.cpp | 793 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, int32_t waitCount, size_t *nonContig) in obtainBuffer() argument 795 if (audioBuffer == NULL) { in obtainBuffer() 802 audioBuffer->frameCount = 0; in obtainBuffer() 803 audioBuffer->size = 0; in obtainBuffer() 804 audioBuffer->raw = NULL; in obtainBuffer() 826 return obtainBuffer(audioBuffer, requested, NULL /*elapsed*/, nonContig); in obtainBuffer() 829 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer() argument 880 buffer.mFrameCount = audioBuffer->frameCount; in obtainBuffer() 886 audioBuffer->frameCount = buffer.mFrameCount; in obtainBuffer() 887 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer() [all …]
|
D | AudioTrack.cpp | 1677 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, int32_t waitCount, size_t *nonContig) in obtainBuffer() argument 1679 if (audioBuffer == NULL) { in obtainBuffer() 1686 audioBuffer->frameCount = 0; in obtainBuffer() 1687 audioBuffer->size = 0; in obtainBuffer() 1688 audioBuffer->raw = NULL; in obtainBuffer() 1710 return obtainBuffer(audioBuffer, requested, NULL /*elapsed*/, nonContig); in obtainBuffer() 1713 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer() argument 1774 buffer.mFrameCount = audioBuffer->frameCount; in obtainBuffer() 1779 audioBuffer->frameCount = buffer.mFrameCount; in obtainBuffer() 1780 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer() [all …]
|
/frameworks/av/media/libaudiohal/ |
D | EffectHalLocal.cpp | 53 return (*mHandle)->process(mHandle, mInBuffer->audioBuffer(), mOutBuffer->audioBuffer()); in process() 64 mHandle, mInBuffer->audioBuffer(), mOutBuffer->audioBuffer()); in processReverse()
|
D | EffectHalHidl.cpp | 124 if (mInBuffer == 0 || buffer->audioBuffer() != mInBuffer->audioBuffer()) { in setInBuffer() 132 if (mOutBuffer == 0 || buffer->audioBuffer() != mOutBuffer->audioBuffer()) { in setOutBuffer()
|
D | EffectBufferHalLocal.h | 30 virtual audio_buffer_t* audioBuffer();
|
D | EffectBufferHalHidl.h | 35 virtual audio_buffer_t* audioBuffer();
|
D | EffectBufferHalLocal.cpp | 55 audio_buffer_t* EffectBufferHalLocal::audioBuffer() { in audioBuffer() function in android::EffectBufferHalLocal
|
D | EffectBufferHalHidl.cpp | 100 audio_buffer_t* EffectBufferHalHidl::audioBuffer() { in audioBuffer() function in android::EffectBufferHalHidl
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | AAudioSimplePlayer.h | 308 int16_t *audioBuffer = (int16_t *) audioData; in SimplePlayerDataCallbackProc() local 310 sineData->sineOsc1.render(&audioBuffer[0], samplesPerFrame, numFrames); in SimplePlayerDataCallbackProc() 313 sineData->sineOsc2.render(&audioBuffer[1], samplesPerFrame, numFrames); in SimplePlayerDataCallbackProc() 318 float *audioBuffer = (float *) audioData; in SimplePlayerDataCallbackProc() local 320 sineData->sineOsc1.render(&audioBuffer[0], samplesPerFrame, numFrames); in SimplePlayerDataCallbackProc() 323 sineData->sineOsc2.render(&audioBuffer[1], samplesPerFrame, numFrames); in SimplePlayerDataCallbackProc()
|
D | AAudioSimpleRecorder.h | 268 int16_t *audioBuffer = (int16_t *) audioData; in SimpleRecorderDataCallbackProc() local 271 sample = audioBuffer[frameIndex * samplesPerFrame] * (1.0/32768); in SimpleRecorderDataCallbackProc() 280 float *audioBuffer = (float *) audioData; in SimpleRecorderDataCallbackProc() local 283 sample = audioBuffer[frameIndex * samplesPerFrame]; in SimpleRecorderDataCallbackProc()
|
/frameworks/av/media/libaudiohal/include/media/audiohal/ |
D | EffectBufferHalInterface.h | 32 virtual audio_buffer_t* audioBuffer() = 0; 37 return externalData() != nullptr ? externalData() : audioBuffer()->raw; in ptr()
|
/frameworks/av/media/libstagefright/ |
D | AudioSource.cpp | 322 status_t AudioSource::dataCallback(const AudioRecord::Buffer& audioBuffer) { in dataCallback() argument 352 const size_t bufferSize = audioBuffer.size; in dataCallback() 390 CHECK_EQ(audioBuffer.size & 1, 0u); in dataCallback() 412 if (audioBuffer.size == 0) { in dataCallback() 419 audioBuffer.i16, audioBuffer.size); in dataCallback()
|
/frameworks/av/include/media/ |
D | AudioRecord.h | 411 status_t obtainBuffer(Buffer* audioBuffer, int32_t waitCount, 476 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, 488 void releaseBuffer(const Buffer* audioBuffer);
|
D | AudioTrack.h | 683 status_t obtainBuffer(Buffer* audioBuffer, int32_t waitCount, 696 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, 708 void releaseBuffer(const Buffer* audioBuffer);
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioRecord.h | 411 status_t obtainBuffer(Buffer* audioBuffer, int32_t waitCount, 476 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, 488 void releaseBuffer(const Buffer* audioBuffer);
|
D | AudioTrack.h | 683 status_t obtainBuffer(Buffer* audioBuffer, int32_t waitCount, 696 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, 708 void releaseBuffer(const Buffer* audioBuffer);
|
/frameworks/av/services/audioflinger/ |
D | Effects.cpp | 778 mConfig.inputCfg.buffer.raw = buffer->audioBuffer()->raw; in setInBuffer() 789 mConfig.outputCfg.buffer.raw = buffer->audioBuffer()->raw; in setOutBuffer() 1607 memset(mInBuffer->audioBuffer()->raw, 0, thread->frameCount() * frameSize); in clearInputBuffer_l() 1651 if (mInBuffer->audioBuffer()->raw != mOutBuffer->audioBuffer()->raw) { in process_l() 1658 if (mInBuffer->audioBuffer()->raw != mOutBuffer->audioBuffer()->raw) { in process_l() 1968 isInput ? buffer->externalData() : buffer->audioBuffer()->raw, in dumpInOutBuffer() 1969 isInput ? buffer->audioBuffer()->raw : buffer->externalData()); in dumpInOutBuffer() 1971 snprintf(dump, dumpSize, "%p", buffer->audioBuffer()->raw); in dumpInOutBuffer()
|
D | Threads.cpp | 2810 buffer = halInBuffer->audioBuffer()->s16; in addEffectChain_l()
|