Home
last modified time | relevance | path

Searched refs:audioBuffer (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/media/java/android/media/
DMediaSync.java131 @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 …]
DAudioRecord.java1266 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes) { in read() argument
1267 return read(audioBuffer, sizeInBytes, READ_BLOCKING); in read()
1299 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes, @ReadMode int readMode) { in read() argument
1309 if ( (audioBuffer == null) || (sizeInBytes < 0) ) { in read()
1313 return native_read_in_direct_buffer(audioBuffer, sizeInBytes, readMode == READ_BLOCKING); in read()
/frameworks/av/media/libmedia/
DAudioRecord.cpp739 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, int32_t waitCount, size_t *nonContig) in obtainBuffer() argument
741 if (audioBuffer == NULL) { in obtainBuffer()
748 audioBuffer->frameCount = 0; in obtainBuffer()
749 audioBuffer->size = 0; in obtainBuffer()
750 audioBuffer->raw = NULL; in obtainBuffer()
772 return obtainBuffer(audioBuffer, requested, NULL /*elapsed*/, nonContig); in obtainBuffer()
775 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer() argument
826 buffer.mFrameCount = audioBuffer->frameCount; in obtainBuffer()
832 audioBuffer->frameCount = buffer.mFrameCount; in obtainBuffer()
833 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer()
[all …]
DAudioTrack.cpp1559 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, int32_t waitCount, size_t *nonContig) in obtainBuffer() argument
1561 if (audioBuffer == NULL) { in obtainBuffer()
1568 audioBuffer->frameCount = 0; in obtainBuffer()
1569 audioBuffer->size = 0; in obtainBuffer()
1570 audioBuffer->raw = NULL; in obtainBuffer()
1592 return obtainBuffer(audioBuffer, requested, NULL /*elapsed*/, nonContig); in obtainBuffer()
1595 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, in obtainBuffer() argument
1656 buffer.mFrameCount = audioBuffer->frameCount; in obtainBuffer()
1661 audioBuffer->frameCount = buffer.mFrameCount; in obtainBuffer()
1662 audioBuffer->size = buffer.mFrameCount * mFrameSize; in obtainBuffer()
[all …]
/frameworks/av/media/libstagefright/
DAudioSource.cpp297 status_t AudioSource::dataCallback(const AudioRecord::Buffer& audioBuffer) { in dataCallback() argument
339 CHECK_EQ(audioBuffer.size & 1, 0u); in dataCallback()
360 if (audioBuffer.size == 0) { in dataCallback()
365 const size_t bufferSize = audioBuffer.size; in dataCallback()
368 audioBuffer.i16, audioBuffer.size); in dataCallback()
/frameworks/av/include/media/
DAudioRecord.h398 status_t obtainBuffer(Buffer* audioBuffer, int32_t waitCount,
454 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested,
466 void releaseBuffer(const Buffer* audioBuffer);
DAudioTrack.h668 status_t obtainBuffer(Buffer* audioBuffer, int32_t waitCount,
681 status_t obtainBuffer(Buffer* audioBuffer, const struct timespec *requested,
693 void releaseBuffer(const Buffer* audioBuffer);