Home
last modified time | relevance | path

Searched refs:mFmtChunk (Results 1 – 2 of 2) sorted by relevance

/external/oboe/samples/parselib/src/main/cpp/wav/
DWavStreamReader.cpp39 mFmtChunk = nullptr; in WavStreamReader()
46 if (mFmtChunk->mEncodingId == WavFmtChunkHeader::ENCODING_PCM) { in getSampleEncoding()
47 switch (mFmtChunk->mSampleSize) { in getSampleEncoding()
61 } else if (mFmtChunk->mEncodingId == WavFmtChunkHeader::ENCODING_IEEE_FLOAT) { in getSampleEncoding()
86 chunk = mFmtChunk = std::make_shared<WavFmtChunkHeader>(WavFmtChunkHeader(tag)); in parse()
87 mFmtChunk->read(mStream); in parse()
119 int numChannels = mFmtChunk->mNumChannels; in getDataFloat_PCM8()
159 int numChannels = mFmtChunk->mNumChannels; in getDataFloat_PCM16()
197 int numChannels = mFmtChunk->mNumChannels; in getDataFloat_PCM24()
220 int numChannels = mFmtChunk->mNumChannels; in getDataFloat_Float32()
[all …]
DWavStreamReader.h38 int getSampleRate() { return mFmtChunk->mSampleRate; } in getSampleRate()
41 return mDataChunk->mChunkSize / (mFmtChunk->mSampleSize / 8) / mFmtChunk->mNumChannels; in getNumSampleFrames()
44 int getNumChannels() { return mFmtChunk != 0 ? mFmtChunk->mNumChannels : 0; } in getNumChannels()
48 int getBitsPerSample() { return mFmtChunk->mSampleSize; } in getBitsPerSample()
66 std::shared_ptr<WavFmtChunkHeader> mFmtChunk; variable