Etterna 0.74.4
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RageSoundReader_SpeedChange Class Reference
Inheritance diagram for RageSoundReader_SpeedChange:
Inheritance graph
[legend]
Collaboration diagram for RageSoundReader_SpeedChange:
Collaboration graph
[legend]

Classes

struct  ChannelInfo
 

Public Member Functions

 RageSoundReader_SpeedChange (RageSoundReader *pSource, bool bStepMania)
 
virtual int SetPosition (int iFrame)
 
virtual int Read (float *pBuf, int iFrames)
 
virtual RageSoundReader_SpeedChangeCopy () const
 
virtual bool SetProperty (const std::string &sProperty, float fValue)
 
virtual int GetNextSourceFrame () const
 
virtual float GetStreamToSourceRatio () const
 
void SetSpeedRatio (float fRatio)
 
bool NextReadWillStep () const
 
float GetRatio () const
 
- Public Member Functions inherited from RageSoundReader_Filter
 RageSoundReader_Filter (RageSoundReader *pSource)
 
 RageSoundReader_Filter (const RageSoundReader_Filter &rhs)
 
int GetLength () const override
 
int GetLength_Fast () const override
 
int GetSampleRate () const override
 
unsigned GetNumChannels () const override
 
RageSoundReaderGetSource () override
 
std::string GetError () const override
 
- Public Member Functions inherited from RageSoundReader
int RetriedRead (float *pBuffer, int iFrames, int *iSourceFrame=NULL, float *fRate=NULL)
 

Protected Member Functions

int FillData (int iMax)
 
void EraseData (int iToDelete)
 
int Step ()
 
void Reset ()
 
int GetCursorAvail () const
 
int GetWindowSizeFrames () const
 
int GetToleranceFrames () const
 

Protected Attributes

int m_iDataBufferAvailFrames
 
std::vector< ChannelInfom_Channels
 
int m_iUncorrelatedPos
 
int m_iPos
 
float m_fSpeedRatio
 
float m_fTrailingSpeedRatio
 
float m_fErrorFrames
 
const int m_iWindowSize
 
const bool m_bMidSideEncoding
 
- Protected Attributes inherited from RageSoundReader_Filter
std::unique_ptr< RageSoundReaderm_pSource
 

Additional Inherited Members

- Public Types inherited from RageSoundReader
enum  { RSRERROR = -1 , END_OF_FILE = -2 , WOULD_BLOCK = -3 , STREAM_LOOPED = -4 }
 

Member Function Documentation

◆ Copy()

virtual RageSoundReader_SpeedChange * RageSoundReader_SpeedChange::Copy ( ) const
inlinevirtual

Implements RageSoundReader.

◆ GetNextSourceFrame()

int RageSoundReader_SpeedChange::GetNextSourceFrame ( ) const
virtual

Reimplemented from RageSoundReader_Filter.

◆ GetStreamToSourceRatio()

float RageSoundReader_SpeedChange::GetStreamToSourceRatio ( ) const
virtual

Reimplemented from RageSoundReader_Filter.

◆ Read()

int RageSoundReader_SpeedChange::Read ( float *  pBuf,
int  iFrames 
)
virtual

Reimplemented from RageSoundReader_Filter.

◆ SetPosition()

int RageSoundReader_SpeedChange::SetPosition ( int  iFrame)
virtual

Reimplemented from RageSoundReader_Filter.

◆ SetProperty()

bool RageSoundReader_SpeedChange::SetProperty ( const std::string &  sProperty,
float  fValue 
)
virtual

Reimplemented from RageSoundReader_Filter.


The documentation for this class was generated from the following files: