Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- KStatus KCustomReader::Open (const QString& FileName, rate_t Rate, type_t Type,
- size_t FrontOffset, size_t BackOffset, size_t ChanCount)
- {
- KStatus Sts = KBasicReader::Open (FileName);
- if (Sts.Failed())
- return Sts;
- if (FrontOffset + BackOffset >= m_File.size())
- {
- FrontOffset = 0;
- BackOffset = 0;
- }
- m_Rate = Rate;
- m_Type = Type;
- m_FrontOffset = FrontOffset;
- m_BackOffset = BackOffset;
- m_ChannelCount = std::max<size_t>(ChanCount, 1);
- return KStatus::Ok;
- }
Add Comment
Please, Sign In to add comment