/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 | 1785 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes) { in read() argument 1786 return read(audioBuffer, sizeInBytes, READ_BLOCKING); in read() 1818 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes, @ReadMode int readMode) { in read() argument 1828 if ( (audioBuffer == null) || (sizeInBytes < 0) ) { in read() 1832 return native_read_in_direct_buffer(audioBuffer, sizeInBytes, readMode == READ_BLOCKING); in read()
|
/frameworks/av/media/libaudioclient/ |
D | AudioRecord.cpp | 1051 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, int32_t waitCount, size_t *nonContig) in obtainBuffer() argument 1053 if (audioBuffer == NULL) { in obtainBuffer() 1060 audioBuffer->frameCount = 0; in obtainBuffer() 1061 audioBuffer->mSize = 0; in obtainBuffer() 1062 audioBuffer->raw = NULL; in obtainBuffer() 1084 return obtainBuffer(audioBuffer, requested, NULL /*elapsed*/, nonContig); in obtainBuffer() 1087 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer() argument 1143 buffer.mFrameCount = audioBuffer->frameCount; in obtainBuffer() 1149 audioBuffer->frameCount = buffer.mFrameCount; in obtainBuffer() 1150 audioBuffer->mSize = buffer.mFrameCount * mServerFrameSize; in obtainBuffer() [all …]
|
D | AudioTrack.cpp | 2140 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, int32_t waitCount, size_t *nonContig) in obtainBuffer() argument 2142 if (audioBuffer == NULL) { in obtainBuffer() 2149 audioBuffer->frameCount = 0; in obtainBuffer() 2150 audioBuffer->mSize = 0; in obtainBuffer() 2151 audioBuffer->raw = NULL; in obtainBuffer() 2173 return obtainBuffer(audioBuffer, requested, NULL /*elapsed*/, nonContig); in obtainBuffer() 2176 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer() argument 2236 buffer.mFrameCount = audioBuffer->frameCount; in obtainBuffer() 2241 audioBuffer->frameCount = buffer.mFrameCount; in obtainBuffer() 2242 audioBuffer->mSize = buffer.mFrameCount * mFrameSize; in obtainBuffer() [all …]
|
/frameworks/av/media/libstagefright/ |
D | AudioSource.cpp | 349 size_t AudioSource::onMoreData(const AudioRecord::Buffer& audioBuffer) { in onMoreData() argument 377 return audioBuffer.size(); in onMoreData() 384 int64_t receievedFrames = audioBuffer.size() / mRecord->frameSize(); in onMoreData() 388 return audioBuffer.size(); in onMoreData() 396 return audioBuffer.size(); in onMoreData() 417 CHECK_EQ(audioBuffer.size() & 1, 0u); in onMoreData() 439 if (audioBuffer.size() == 0) { in onMoreData() 441 return audioBuffer.size(); in onMoreData() 444 MediaBuffer *buffer = new MediaBuffer(audioBuffer.size()); in onMoreData() 446 audioBuffer.data(), audioBuffer.size()); in onMoreData() [all …]
|
/frameworks/av/media/libaudiohal/impl/ |
D | EffectHalAidl.cpp | 227 if (!mInBuffer->audioBuffer() || in process() 228 !inputQ->write((float*)mInBuffer->audioBuffer()->f32, floatsToWrite)) { in process() 230 floatsToWrite, mInBuffer->audioBuffer(), inputQ->availableToWrite()); in process() 260 float *outputRawBuffer = mOutBuffer->audioBuffer()->f32; in process() 270 mOutBuffer->audioBuffer()); in process() 286 accumulate_float(mOutBuffer->audioBuffer()->f32, mInBuffer->audioBuffer()->f32, in process() 289 memcpy_to_float_from_float_with_clamping(mOutBuffer->audioBuffer()->f32, in process() 290 mInBuffer->audioBuffer()->f32, audioSamples, in process() 294 memcpy_to_float_from_float_with_clamping(mInBuffer->audioBuffer()->f32 + audioSamples, in process() 298 accumulate_float(mOutBuffer->audioBuffer()->f32, outputRawBuffer, floatsToRead); in process()
|
D | EffectHalHidl.cpp | 88 mBuffersChanged = buffer->audioBuffer() != mInBuffer->audioBuffer(); in setInBuffer() 102 mBuffersChanged = buffer->audioBuffer() != mOutBuffer->audioBuffer(); in setOutBuffer()
|
D | EffectBufferHalAidl.h | 32 audio_buffer_t* audioBuffer() override;
|
D | EffectBufferHalHidl.h | 40 virtual audio_buffer_t* audioBuffer();
|
D | EffectBufferHalAidl.cpp | 72 audio_buffer_t* EffectBufferHalAidl::audioBuffer() { in audioBuffer() function in android::effect::EffectBufferHalAidl
|
D | EffectBufferHalHidl.cpp | 98 audio_buffer_t* EffectBufferHalHidl::audioBuffer() { in audioBuffer() function in android::effect::EffectBufferHalHidl
|
/frameworks/av/media/libaaudio/tests/ |
D | test_aaudio_monkey.cpp | 196 int16_t *audioBuffer = (int16_t *) audioData; in renderAudio() local 198 mSine1.render(&audioBuffer[0], samplesPerFrame, numFrames); in renderAudio() 201 mSine2.render(&audioBuffer[1], samplesPerFrame, numFrames); in renderAudio() 206 float *audioBuffer = (float *) audioData; in renderAudio() local 208 mSine1.render(&audioBuffer[0], samplesPerFrame, numFrames); in renderAudio() 211 mSine2.render(&audioBuffer[1], samplesPerFrame, numFrames); in renderAudio()
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | AAudioSimplePlayer.h | 404 int16_t *audioBuffer = (int16_t *) audioData; in SimplePlayerDataCallbackProc() local 406 sineData->sineOscillators[i].render(&audioBuffer[i], in SimplePlayerDataCallbackProc() 412 float *audioBuffer = (float *) audioData; in SimplePlayerDataCallbackProc() local 414 sineData->sineOscillators[i].render(&audioBuffer[i], in SimplePlayerDataCallbackProc() 420 uint8_t *audioBuffer = (uint8_t *) audioData; in SimplePlayerDataCallbackProc() local 423 sineData->sineOscillators[i].render24(&audioBuffer[i * bytesPerSample], in SimplePlayerDataCallbackProc() 429 int32_t *audioBuffer = (int32_t *) audioData; in SimplePlayerDataCallbackProc() local 431 sineData->sineOscillators[i].render(&audioBuffer[i], in SimplePlayerDataCallbackProc()
|
D | AAudioSimpleRecorder.h | 270 int16_t *audioBuffer = (int16_t *) audioData; in SimpleRecorderDataCallbackProc() local 273 sample = audioBuffer[frameIndex * samplesPerFrame] * (1.0/32768); in SimpleRecorderDataCallbackProc() 282 float *audioBuffer = (float *) audioData; in SimpleRecorderDataCallbackProc() local 285 sample = audioBuffer[frameIndex * samplesPerFrame]; in SimpleRecorderDataCallbackProc()
|
/frameworks/base/core/java/android/companion/virtual/audio/ |
D | AudioCapture.java | 131 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes) { in read() argument 132 return read(audioBuffer, sizeInBytes, READ_BLOCKING); in read() 136 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes, in read() argument 141 sizeRead = mAudioRecord.read(audioBuffer, sizeInBytes, readMode); in read()
|
D | AudioInjection.java | 140 public int write(@NonNull ByteBuffer audioBuffer, int sizeInBytes, int writeMode) { in write() argument 144 sizeWrite = mAudioTrack.write(audioBuffer, sizeInBytes, writeMode); in write() 153 public int write(@NonNull ByteBuffer audioBuffer, int sizeInBytes, in write() argument 158 sizeWrite = mAudioTrack.write(audioBuffer, sizeInBytes, writeMode, timestamp); in write()
|
/frameworks/av/media/libaudiohal/include/media/audiohal/ |
D | EffectBufferHalInterface.h | 33 virtual audio_buffer_t* audioBuffer() = 0; 38 return externalData() != nullptr ? externalData() : audioBuffer()->raw; in ptr()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioRecord.h | 478 status_t obtainBuffer(Buffer* audioBuffer, int32_t waitCount, 543 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, 555 void releaseBuffer(const Buffer* audioBuffer);
|
D | AudioTrack.h | 914 status_t obtainBuffer(Buffer* audioBuffer, int32_t waitCount, 927 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, 939 void releaseBuffer(const Buffer* audioBuffer);
|
/frameworks/av/services/audioflinger/ |
D | Effects.cpp | 733 inBuffer->audioBuffer()->f32, mInChannelCountRequested, in process() 734 mInConversionBuffer->audioBuffer()->f32, inChannelCount, in process() 743 outBuffer->audioBuffer()->f32, mOutChannelCountRequested, in process() 744 mOutConversionBuffer->audioBuffer()->f32, outChannelCount, in process() 757 mInConversionBuffer->audioBuffer()->s16, in process() 758 inBuffer->audioBuffer()->f32, in process() 768 mOutConversionBuffer->audioBuffer()->s16, in process() 769 outBuffer->audioBuffer()->f32, in process() 781 target->audioBuffer()->f32, in process() 782 mOutConversionBuffer->audioBuffer()->s16, in process() [all …]
|
D | Threads.cpp | 3793 buffer = halInBuffer ? halInBuffer->audioBuffer()->f32 : buffer; in addEffectChain_l() 3836 buffer = halInBuffer ? halInBuffer->audioBuffer()->f32 : buffer; in addEffectChain_l()
|
/frameworks/av/media/libaudioclient/fuzzer/ |
D | audioflinger_fuzzer.cpp | 378 android::AudioRecord::Buffer audioBuffer; in invokeAudioRecord() local 381 audioBuffer.frameCount = static_cast<size_t>(mFdp.ConsumeIntegral<uint32_t>()); in invokeAudioRecord() 382 record->obtainBuffer(&audioBuffer, waitCount, &nonContig); in invokeAudioRecord() 384 record->read(audioBuffer.data(), audioBuffer.size(), blocking); in invokeAudioRecord() 390 record->releaseBuffer(&audioBuffer); in invokeAudioRecord()
|
/frameworks/av/media/libaudioclient/tests/ |
D | audio_test_utils.cpp | 320 RawBuffer audioBuffer{timeUs, timestampUs, static_cast<int32_t>(bufferSize)}; in onMoreData() local 321 memcpy(audioBuffer.mData.get(), buffer.data(), bufferSize); in onMoreData() 323 tmpQueue.push_back(std::move(audioBuffer)); in onMoreData()
|