Home
last modified time | relevance | path

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

/frameworks/base/media/libmedia/
DAudioTrack.cpp325 status = createTrack(mStreamType, mCblk->sampleRate, mFormat, mChannelCount, in start()
330 mNewPosition = mCblk->server + mUpdatePeriod; in start()
331 mCblk->bufferTimeoutMs = MAX_STARTUP_TIMEOUT_MS; in start()
332 mCblk->waitTimeMs = 0; in start()
359 mCblk->cv.signal(); in stop()
404 mCblk->cv.signal(); in flush()
435 mCblk->volumeLR = (int32_t(int16_t(left * 0x1000)) << 16) | int16_t(right * 0x1000); in setVolume()
454 mCblk->sampleRate = rate; in setSampleRate()
460 return mCblk->sampleRate; in getSampleRate()
465 audio_track_cblk_t* cblk = mCblk; in setLoop()
[all …]
DAudioRecord.cpp188 mFrameCount = mCblk->frameCount; in set()
273 ret = openRecord(mCblk->sampleRate, mFormat, mChannelCount, in start()
277 mNewPosition = mCblk->user + mUpdatePeriod; in start()
278 mCblk->bufferTimeoutMs = MAX_RUN_TIMEOUT_MS; in start()
279 mCblk->waitTimeMs = 0; in start()
311 mCblk->cv.signal(); in stop()
338 return mCblk->sampleRate; in getSampleRate()
385 *position = mCblk->user; in getPosition()
425 mCblk = static_cast<audio_track_cblk_t*>(cblk->pointer()); in openRecord()
426 mCblk->buffers = (char*)mCblk + sizeof(audio_track_cblk_t); in openRecord()
[all …]
/frameworks/base/libs/audioflinger/
DAudioFlinger.cpp1593 if (mTracks[i]->mCblk->sampleRate > 2 * sampleRate()) { in checkForNewParameters_l()
1594 mTracks[i]->mCblk->sampleRate = 2 * sampleRate(); in checkForNewParameters_l()
2107 mCblk(0), in TrackBase()
2126 mCblk = static_cast<audio_track_cblk_t *>(mCblkMemory->pointer()); in TrackBase()
2127 if (mCblk) { // construct the shared structure in-place. in TrackBase()
2128 new(mCblk) audio_track_cblk_t(); in TrackBase()
2130 mCblk->frameCount = frameCount; in TrackBase()
2131 mCblk->sampleRate = sampleRate; in TrackBase()
2132 mCblk->channels = (uint8_t)channelCount; in TrackBase()
2134 mBuffer = (char*)mCblk + sizeof(audio_track_cblk_t); in TrackBase()
[all …]
DAudioFlinger.h254 audio_track_cblk_t* cblk() const { return mCblk; } in cblk()
294 audio_track_cblk_t* mCblk; variable
/frameworks/base/include/media/
DAudioRecord.h330 audio_track_cblk_t* mCblk; variable
DAudioTrack.h410 audio_track_cblk_t* mCblk; variable
/frameworks/base/libs/surfaceflinger/
DSurfaceFlinger.h409 sp<IMemoryHeap> mCblk; variable
DSurfaceFlinger.cpp1746 : mId(cid), mFlinger(flinger), mCblk(cblk) in BClient()
1756 return mCblk; in getControlBlock()