Guest User

Untitled

a guest
Sep 5th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. KStatus KCustomReader::Open (const QString& FileName, rate_t Rate, type_t Type,
  2.     size_t FrontOffset, size_t BackOffset, size_t ChanCount)
  3. {
  4.     KStatus Sts = KBasicReader::Open (FileName);
  5.     if (Sts.Failed())
  6.         return Sts;
  7.  
  8.     if (FrontOffset + BackOffset >= m_File.size())
  9.     {
  10.         FrontOffset = 0;
  11.         BackOffset = 0;
  12.     }
  13.  
  14.     m_Rate = Rate;
  15.     m_Type = Type;
  16.     m_FrontOffset = FrontOffset;
  17.     m_BackOffset = BackOffset;
  18.     m_ChannelCount = std::max<size_t>(ChanCount, 1);
  19.  
  20.     return KStatus::Ok;
  21. }
Add Comment
Please, Sign In to add comment