Searched refs:obtainBuffer (Results 1 - 11 of 11) sorted by relevance

/frameworks/av/include/private/media/
H A DAudioTrackShared.h48 #define CBLK_INTERRUPT 0x200 // set by client on interrupt(), cleared by client in obtainBuffer()
51 //EL_FIXME 20 seconds may not be enough and must be reconciled with new obtainBuffer implementation
171 size_t mUnreleased; // unreleased frames remaining from most recent obtainBuffer
187 // It is permitted to call obtainBuffer() multiple times in succession, without any intervening
188 // calls to releaseBuffer(). In that case, the final obtainBuffer() is the one that effectively
217 status_t obtainBuffer(Buffer* buffer, const struct timespec *requested = NULL,
223 // buffer->mRaw is ignored, but is normally same pointer returned by last obtainBuffer().
233 // Call to force an obtainBuffer() to return quickly with -EINTR
355 // It is permitted to call obtainBuffer() multiple times in succession, without any intervening
356 // calls to releaseBuffer(). In that case, the final obtainBuffer() i
[all...]
/frameworks/av/services/audioflinger/
H A DRecordTracks.h118 virtual status_t obtainBuffer(Proxy::Buffer *buffer,
H A DTracks.cpp601 status_t status = mServerProxy->obtainBuffer(&buf);
615 // from a different thread than the one calling Proxy->obtainBuffer() and
715 (void) mAudioTrackServerProxy->obtainBuffer(&buffer, true /*ackFlush*/);
1759 status_t status = obtainBuffer(&mOutBuffer, waitTimeLeftMs);
1842 status_t AudioFlinger::PlaybackThread::OutputTrack::obtainBuffer( function in class:android::AudioFlinger::PlaybackThread::OutputTrack
1850 status_t status = mClientProxy->obtainBuffer(&buf, &timeout);
1903 status_t status = mPeerProxy->obtainBuffer(&buf, &mPeerTimeout);
1923 status_t AudioFlinger::PlaybackThread::PatchTrack::obtainBuffer(Proxy::Buffer* buffer, function in class:android::AudioFlinger::PlaybackThread::PatchTrack
1926 return mProxy->obtainBuffer(buffer, timeOut);
2042 status_t status = mServerProxy->obtainBuffer(
2204 status_t AudioFlinger::RecordThread::PatchRecord::obtainBuffer(Proxy::Buffer* buffer, function in class:android::AudioFlinger::RecordThread::PatchRecord
[all...]
H A DTrackBase.h180 virtual status_t obtainBuffer(Proxy::Buffer* buffer,
H A DPlaybackTracks.h281 status_t obtainBuffer(AudioBufferProvider::Buffer* buffer,
314 virtual status_t obtainBuffer(Proxy::Buffer* buffer,
/frameworks/av/include/media/
H A DAudioRecord.h56 /* Client should declare Buffer on the stack and pass address to obtainBuffer()
121 TRANSFER_OBTAIN, // FIXME deprecated: call obtainBuffer() and releaseBuffer()
235 /* Stop a track. The callback will cease being called. Note that obtainBuffer() still
328 * If the track buffer is not empty, obtainBuffer() returns as many contiguous
330 * If the track buffer is empty and track is stopped, obtainBuffer() returns WOULD_BLOCK
332 * If the track buffer is empty and track is not stopped, obtainBuffer() blocks with a
335 * is exhausted, at which point obtainBuffer() will either block
339 * obtainBuffer() and releaseBuffer() are deprecated for direct use by applications,
361 status_t obtainBuffer(Buffer* audioBuffer, int32_t waitCount)
367 * FIXME We could pass an array of Buffers instead of only one Buffer to obtainBuffer(),
[all...]
H A DAudioTrack.h66 /* Client should declare Buffer on the stack and pass address to obtainBuffer()
135 TRANSFER_OBTAIN, // FIXME deprecated: call obtainBuffer() and releaseBuffer()
303 * In streaming mode, the callback will cease being called. Note that obtainBuffer() still
319 * obtainBuffer returns WOULD_BLOCK. Note that obtainBuffer() still works
492 * If the track buffer is not full, obtainBuffer() returns as many contiguous
494 * If the track buffer is full and track is stopped, obtainBuffer() returns WOULD_BLOCK
496 * If the track buffer is full and track is not stopped, obtainBuffer() blocks with a
499 * is exhausted, at which point obtainBuffer() will either block
504 * obtainBuffer() an
[all...]
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp101 // it is looping on buffer empty condition in obtainBuffer().
591 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, int32_t waitCount) function in class:android::AudioRecord
618 return obtainBuffer(audioBuffer, requested);
621 status_t AudioRecord::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, function in class:android::AudioRecord
635 // obtainBuffer() is called with mutex unlocked, so keep extra references to these fields to
636 // keep them from going away if another thread re-creates the track during obtainBuffer()
645 // did previous obtainBuffer() fail due to media server death or voluntary invalidation?
649 status = restoreRecord_l("obtainBuffer");
674 status = proxy->obtainBuffer(&buffer, requested, elapsed);
734 status_t err = obtainBuffer(
[all...]
H A DAudioTrack.cpp188 // it is looping on buffer full condition in obtainBuffer().
1261 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, int32_t waitCount) function in class:android::AudioTrack
1288 return obtainBuffer(audioBuffer, requested);
1291 status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, const struct timespec *requested, function in class:android::AudioTrack
1305 // obtainBuffer() is called with mutex unlocked, so keep extra references to these fields to
1306 // keep them from going away if another thread re-creates the track during obtainBuffer()
1314 // did previous obtainBuffer() fail due to media server death or voluntary invalidation?
1318 status = restoreTrack_l("obtainBuffer");
1350 status = proxy->obtainBuffer(&buffer, requested, elapsed);
1425 status_t err = obtainBuffer(
[all...]
H A DAudioTrackShared.cpp70 status_t ClientProxy::obtainBuffer(Buffer* buffer, const struct timespec *requested, function in class:android::ClientProxy
115 // check for obtainBuffer interrupted by client
117 ALOGV("obtainBuffer() interrupted by client");
216 LOG_ALWAYS_FATAL("obtainBuffer() timeout=%d", timeout);
411 // check for obtainBuffer interrupted by client
412 // check for obtainBuffer interrupted by client
539 status_t ServerProxy::obtainBuffer(Buffer* buffer, bool ackFlush) function in class:android::ServerProxy
551 // See notes on barriers at ClientProxy::obtainBuffer()
711 // cache this value for later use by obtainBuffer(), with added barrier
713 // ignores flush(), so framesReady() may report a larger mFrameCount than obtainBuffer()
816 status_t StaticAudioTrackServerProxy::obtainBuffer(Buffer* buffer, bool ackFlush __unused) function in class:android::StaticAudioTrackServerProxy
[all...]
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp885 status_t status = track->obtainBuffer(&buffer, 1);
901 status_t status = record->obtainBuffer(&buffer, 1);

Completed in 160 milliseconds