/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamLegacy.cpp | 94 AudioTrack::Buffer *audioBuffer = static_cast<AudioTrack::Buffer *>(info); in processCallbackCommon() local 97 audioBuffer->size = SIZE_STOP_CALLBACKS; in processCallbackCommon() 100 audioBuffer->size = SIZE_STOP_CALLBACKS; in processCallbackCommon() 102 if (audioBuffer->frameCount == 0) { in processCallbackCommon() 109 int32_t byteCount = audioBuffer->frameCount * getBytesPerDeviceFrame(); in processCallbackCommon() 111 (uint8_t *) audioBuffer->raw, byteCount); in processCallbackCommon() 114 callbackResult = callDataCallbackFrames((uint8_t *)audioBuffer->raw, in processCallbackCommon() 115 audioBuffer->frameCount); in processCallbackCommon() 118 audioBuffer->size = audioBuffer->frameCount * getBytesPerDeviceFrame(); in processCallbackCommon() 126 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 | 1365 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes) { in read() argument 1366 return read(audioBuffer, sizeInBytes, READ_BLOCKING); in read() 1398 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes, @ReadMode int readMode) { in read() argument 1408 if ( (audioBuffer == null) || (sizeInBytes < 0) ) { in read() 1412 return native_read_in_direct_buffer(audioBuffer, sizeInBytes, readMode == READ_BLOCKING); in read()
|
/frameworks/av/media/libaudioclient/ |
D | AudioRecord.cpp | 882 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, int32_t waitCount, size_t *nonContig) in obtainBuffer() argument 884 if (audioBuffer == NULL) { in obtainBuffer() 891 audioBuffer->frameCount = 0; in obtainBuffer() 892 audioBuffer->size = 0; in obtainBuffer() 893 audioBuffer->raw = NULL; in obtainBuffer() 915 return obtainBuffer(audioBuffer, requested, NULL /*elapsed*/, nonContig); in obtainBuffer() 918 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer() argument 968 buffer.mFrameCount = audioBuffer->frameCount; in obtainBuffer() 974 audioBuffer->frameCount = buffer.mFrameCount; in obtainBuffer() 975 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer() [all …]
|
D | AudioTrack.cpp | 1627 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, int32_t waitCount, size_t *nonContig) in obtainBuffer() argument 1629 if (audioBuffer == NULL) { in obtainBuffer() 1636 audioBuffer->frameCount = 0; in obtainBuffer() 1637 audioBuffer->size = 0; in obtainBuffer() 1638 audioBuffer->raw = NULL; in obtainBuffer() 1660 return obtainBuffer(audioBuffer, requested, NULL /*elapsed*/, nonContig); in obtainBuffer() 1663 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer() argument 1723 buffer.mFrameCount = audioBuffer->frameCount; in obtainBuffer() 1728 audioBuffer->frameCount = buffer.mFrameCount; in obtainBuffer() 1729 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer() [all …]
|
/frameworks/av/media/libaaudio/tests/ |
D | test_aaudio_monkey.cpp | 178 int16_t *audioBuffer = (int16_t *) audioData; in renderAudio() local 180 mSine1.render(&audioBuffer[0], samplesPerFrame, numFrames); in renderAudio() 183 mSine2.render(&audioBuffer[1], samplesPerFrame, numFrames); in renderAudio() 188 float *audioBuffer = (float *) audioData; in renderAudio() local 190 mSine1.render(&audioBuffer[0], samplesPerFrame, numFrames); in renderAudio() 193 mSine2.render(&audioBuffer[1], samplesPerFrame, numFrames); in renderAudio()
|
/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/libaaudio/examples/utils/ |
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()
|
D | AAudioSimplePlayer.h | 366 int16_t *audioBuffer = (int16_t *) audioData; in SimplePlayerDataCallbackProc() local 368 sineData->sineOscillators[i].render(&audioBuffer[i], samplesPerFrame, in SimplePlayerDataCallbackProc() 374 float *audioBuffer = (float *) audioData; in SimplePlayerDataCallbackProc() local 376 sineData->sineOscillators[i].render(&audioBuffer[i], samplesPerFrame, in SimplePlayerDataCallbackProc()
|
/frameworks/av/media/libstagefright/ |
D | AudioSource.cpp | 328 status_t AudioSource::dataCallback(const AudioRecord::Buffer& audioBuffer) { in dataCallback() argument 358 const size_t bufferSize = audioBuffer.size; in dataCallback() 396 CHECK_EQ(audioBuffer.size & 1, 0u); in dataCallback() 418 if (audioBuffer.size == 0) { in dataCallback() 425 audioBuffer.i16, audioBuffer.size); in dataCallback()
|
/frameworks/av/media/libaudiohal/impl/ |
D | EffectHalHidl.cpp | 129 mBuffersChanged = buffer->audioBuffer() != mInBuffer->audioBuffer(); in setInBuffer() 141 mBuffersChanged = buffer->audioBuffer() != mOutBuffer->audioBuffer(); in setOutBuffer()
|
D | EffectBufferHalHidl.h | 41 virtual audio_buffer_t* audioBuffer();
|
D | EffectBufferHalHidl.cpp | 100 audio_buffer_t* EffectBufferHalHidl::audioBuffer() { in audioBuffer() function in android::effect::CPP_VERSION::EffectBufferHalHidl
|
/frameworks/av/services/audioflinger/ |
D | Effects.cpp | 721 inBuffer->audioBuffer()->f32, mInChannelCountRequested, in process() 722 mInConversionBuffer->audioBuffer()->f32, inChannelCount, in process() 731 outBuffer->audioBuffer()->f32, mOutChannelCountRequested, in process() 732 mOutConversionBuffer->audioBuffer()->f32, outChannelCount, in process() 745 mInConversionBuffer->audioBuffer()->s16, in process() 746 inBuffer->audioBuffer()->f32, in process() 756 mOutConversionBuffer->audioBuffer()->s16, in process() 757 outBuffer->audioBuffer()->f32, in process() 771 target->audioBuffer()->f32, in process() 772 mOutConversionBuffer->audioBuffer()->s16, in process() [all …]
|
D | Threads.cpp | 3146 buffer = halInBuffer->audioBuffer()->f32; in addEffectChain_l() 3148 buffer = halInBuffer->audioBuffer()->s16; in addEffectChain_l()
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioRecord.h | 441 status_t obtainBuffer(Buffer* audioBuffer, int32_t waitCount, 506 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, 518 void releaseBuffer(const Buffer* audioBuffer);
|
D | AudioTrack.h | 712 status_t obtainBuffer(Buffer* audioBuffer, int32_t waitCount, 725 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, 737 void releaseBuffer(const Buffer* audioBuffer);
|