Home
last modified time | relevance | path

Searched refs:mFrameSize (Results 1 – 3 of 3) sorted by relevance

/device/generic/goldfish/audio/
Ddevice_port_sink.cpp54 , mFrameSize(util::countChannels(cfg.base.channelMask) * sizeof(int16_t)) in TinyalsaSink()
58 , mRingBuffer(mFrameSize * cfg.frameCount * 3) in TinyalsaSink()
120 return mRingBuffer.capacity() / mFrameSize - pendingFrames; in calcAvailableFramesNowLocked()
133 const size_t waitFrames = calcWaitFramesNowLocked(bytesToWrite / mFrameSize); in write()
150 std::min(produceChunk.size, bytesToWrite) / mFrameSize; in write()
151 const size_t szBytes = szFrames * mFrameSize; in write()
165 size_t(1000000 * bytesToWrite / mFrameSize / mSampleRateHz)); in write()
169 framesLost += bytesLost / mFrameSize; in write()
174 std::min(produceChunk.size, bytesToWrite) / mFrameSize; in write()
175 const size_t szBytes = szFrames * mFrameSize; in write()
[all …]
Ddevice_port_source.cpp57 , mFrameSize(util::countChannels(cfg.base.channelMask) * sizeof(int16_t)) in TinyalsaSource()
60 , mRingBuffer(mFrameSize * cfg.frameCount * 3) in TinyalsaSource()
113 const size_t waitFrames = getWaitFramesNowLocked(bytesToRead / mFrameSize); in read()
139 mSentFrames += writeBufSzBytes / mFrameSize; in read()
144 size_t(1000000 * bytesToRead / mFrameSize / mSampleRateHz)); in read()
150 std::min(bytesToRead, sizeof(zeroes)) / mFrameSize; in read()
151 const size_t nZeroBytes = nZeroFrames * mFrameSize; in read()
166 std::vector<uint8_t> readBuf(mReadSizeFrames * mFrameSize); in producerThread()
170 mFramesLost += bytesLost / mFrameSize; in producerThread()
188 const int n = talsa::pcmRead(mPcm.get(), dst, sz, mFrameSize); in doRead()
[all …]
Dstream_out.cpp144 mFrameSize = mStream->getFrameSize(); in threadLoop()
219 const size_t written = reader.totalRead / mFrameSize; in doWrite()
267 size_t mFrameSize = 1; // updated when the sink is created. member in android::hardware::audio::CPP_VERSION::implementation::__anon5160085e0111::WriteThread