mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 23:03:01 +05:00
"number_type - The numbering scheme used for the frame. As a convenience, the decoder will always convert a frame number to a sample number because the rules are complex."
This commit is contained in:
parent
71ebe0d9eb
commit
771fd96ba7
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ FLAC__StreamDecoderWriteStatus CAEFLACDecoder::write_cb(const FLAC__StreamDecode
|
|||
size_t processedChannels;
|
||||
|
||||
// Obtain current sample
|
||||
pClientData->m_currentSample = frame->header.number_type == FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER ? frame->header.number.sample_number : frame->header.number.frame_number;
|
||||
assert( frame->header.number_type == FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER );
|
||||
pClientData->m_currentSample = frame->header.number.sample_number;
|
||||
processedChannels = std::min<size_t>(2, frame->header.channels);
|
||||
pClientData->m_curBlockSize = frame->header.blocksize;
|
||||
pClientData->m_bufferCursor = 0;
|
||||
|
|
Loading…
Reference in a new issue