Home
last modified time | relevance | path

Searched refs:mCblk (Results 1 – 15 of 15) sorted by relevance

/frameworks/av/include/private/media/
DAudioTrackShared.h221 audio_track_cblk_t* const mCblk; // the control block
298 return mEpoch + mCblk->mServer; in getPosition()
310 mCblk->mMinimum = (uint32_t) minimum; in setMinimum()
370 mCblk->mSendLevel = uint16_t(sendLevel * 0x1000); in setSendLevel()
375 mCblk->mVolumeLR = volumeLR; in setVolumeLR()
379 mCblk->mSampleRate = sampleRate; in setSampleRate()
389 return mCblk->u.mStreaming.mUnderrunFrames; in getUnderrunFrames()
392 return mCblk->u.mStreaming.mUnderrunCount; in getUnderrunCount()
467 int32_t rear = android_atomic_acquire_load(&mCblk->u.mStreaming.mRear); in flush()
468 int32_t front = mCblk->u.mStreaming.mFront; in flush()
[all …]
/frameworks/av/services/audioflinger/
DTracks.cpp83 mCblk(NULL), in TrackBase()
124 (mCblk = static_cast<audio_track_cblk_t *>(mCblkMemory->pointer())) == NULL) { in TrackBase()
132 mCblk = (audio_track_cblk_t *) new uint8_t[size]; in TrackBase()
137 if (mCblk != NULL) { in TrackBase()
138 new(mCblk) audio_track_cblk_t(); in TrackBase()
167 mBuffer = (char*)mCblk + sizeof(audio_track_cblk_t); in TrackBase()
172 mCblk->mFlags = CBLK_FORCEREADY; // FIXME hack, need to fix the track ready logic in TrackBase()
224 if (mCblk != NULL) { in ~TrackBase()
226 delete mCblk; in ~TrackBase()
228 mCblk->~audio_track_cblk_t(); // destroy our shared-structure. in ~TrackBase()
[all …]
DEffects.cpp1047 mEffect(effect), mEffectClient(effectClient), mClient(client), mCblk(NULL), in EffectHandle()
1058 (mCblk = static_cast<effect_param_cblk_t *>(mCblkMemory->pointer())) == NULL) { in EffectHandle()
1064 new(mCblk) effect_param_cblk_t(); in EffectHandle()
1065 mBuffer = (uint8_t *)mCblk + bufOffset; in EffectHandle()
1196 if (mCblk != NULL) { in disconnect()
1198 mCblk->~effect_param_cblk_t(); // destroy our shared-structure. in disconnect()
1232 Mutex::Autolock _l(mCblk->lock); in command()
1233 if (mCblk->clientIndex > EFFECT_PARAM_BUFFER_SIZE || in command()
1234 mCblk->serverIndex > EFFECT_PARAM_BUFFER_SIZE) { in command()
1235 mCblk->serverIndex = 0; in command()
[all …]
DTrackBase.h77 audio_track_cblk_t* cblk() const { return mCblk; } in cblk()
139 audio_track_cblk_t* mCblk; variable
DFastCaptureState.h38 audio_track_cblk_t* mCblk; // control block for the single fast client, or NULL member
DFastCapture.cpp199 audio_track_cblk_t* cblk = current->mCblk; in onWork()
DEffects.h225 effect_param_cblk_t* mCblk; // control block for deferred parameter setting via variable
DThreads.cpp5749 state->mCblk = NULL; in RecordThread()
6000 audio_track_cblk_t *cblkOld = state->mCblk; in threadLoop()
6003 state->mCblk = cblkNew; in threadLoop()
/frameworks/av/media/libmedia/
DAudioEffect.cpp154 mCblk = static_cast<effect_param_cblk_t*>(cblk->pointer()); in set()
156 mCblk->buffer = (uint8_t *)mCblk + bufOffset; in set()
299 Mutex::Autolock _l(mCblk->lock); in setParameterDeferred()
304 if (mCblk->clientIndex + size > EFFECT_PARAM_BUFFER_SIZE) { in setParameterDeferred()
307 int *p = (int *)(mCblk->buffer + mCblk->clientIndex); in setParameterDeferred()
310 mCblk->clientIndex += size; in setParameterDeferred()
321 Mutex::Autolock _l(mCblk->lock); in setParameterCommit()
322 if (mCblk->clientIndex == 0) { in setParameterCommit()
DAudioTrackShared.cpp61 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), in Proxy()
104 android_atomic_release_store(clippedSize, (int32_t *)&mCblk->mBufferSizeInFrames); in setBufferSizeInFrames()
141 audio_track_cblk_t* cblk = mCblk; in obtainBuffer()
350 audio_track_cblk_t* cblk = mCblk; in releaseBuffer()
363 audio_track_cblk_t* cblk = mCblk; in binderDied()
374 audio_track_cblk_t* cblk = mCblk; in interrupt()
385 audio_track_cblk_t* cblk = mCblk; in getMisalignment()
397 audio_track_cblk_t* cblk = mCblk; in flush()
407 return (android_atomic_and(~CBLK_STREAM_END_DONE, &mCblk->mFlags) & CBLK_STREAM_END_DONE) != 0; in clearStreamEndDone()
411 return (mCblk->mFlags & CBLK_STREAM_END_DONE) != 0; in getStreamEndDone()
[all …]
DAudioTrack.cpp602 int32_t flags = android_atomic_and(~CBLK_DISABLED, &mCblk->mFlags); in start()
1115 if (mCblk->mFlags & CBLK_INVALID) { in getPosition()
1180 android_atomic_or(CBLK_INVALID, &mCblk->mFlags); in setOutputDevice()
1442 mCblk = cblk; in createTrack_l()
1706 int32_t flags = android_atomic_and(~CBLK_DISABLED, &mCblk->mFlags); in restartIfDisabled()
1726 &mCblk->mFlags); in write()
1776 LOG_ALWAYS_FATAL_IF(mCblk == NULL); in processAudioBuffer()
1802 ~(CBLK_UNDERRUN | CBLK_LOOP_CYCLE | CBLK_LOOP_FINAL | CBLK_BUFFER_END), &mCblk->mFlags); in processAudioBuffer()
2291 if (mCblk->mFlags & CBLK_INVALID) { in getTimestamp_l()
2347 if (mCblk->mFlags & CBLK_INVALID) { in getTimestamp()
DAudioRecord.cpp313 int32_t flags = android_atomic_acquire_load(&mCblk->mFlags); in start()
487 android_atomic_or(CBLK_INVALID, &mCblk->mFlags); in setInputDevice()
687 mCblk = cblk; in openRecord_l()
939 int32_t flags = android_atomic_and(~CBLK_OVERRUN, &mCblk->mFlags); in processAudioBuffer()
/frameworks/av/include/media/
DAudioEffect.h481 effect_param_cblk_t* mCblk; // control block for deferred parameter setting variable
DAudioRecord.h613 audio_track_cblk_t* mCblk; // re-load after mLock.unlock() variable
DAudioTrack.h934 audio_track_cblk_t* mCblk; // re-load after mLock.unlock() variable