simplify
This commit is contained in:
@@ -25,11 +25,6 @@ void RageSoundReader_SpeedChange::SetSpeedRatio( float fRatio )
|
|||||||
m_fTrailingSpeedRatio = m_fSpeedRatio;
|
m_fTrailingSpeedRatio = m_fSpeedRatio;
|
||||||
}
|
}
|
||||||
|
|
||||||
float RageSoundReader_SpeedChange::GetRatio() const
|
|
||||||
{
|
|
||||||
return m_fSpeedRatio;
|
|
||||||
}
|
|
||||||
|
|
||||||
int RageSoundReader_SpeedChange::GetWindowSizeFrames() const
|
int RageSoundReader_SpeedChange::GetWindowSizeFrames() const
|
||||||
{
|
{
|
||||||
return (WINDOW_SIZE_MS * GetSampleRate()) / 1000;
|
return (WINDOW_SIZE_MS * GetSampleRate()) / 1000;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public:
|
|||||||
bool NextReadWillStep() const { return GetCursorAvail() == 0; }
|
bool NextReadWillStep() const { return GetCursorAvail() == 0; }
|
||||||
|
|
||||||
/* Get the ratio last set by SetSpeedRatio. */
|
/* Get the ratio last set by SetSpeedRatio. */
|
||||||
float GetRatio() const;
|
float GetRatio() const { return m_fSpeedRatio; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int FillData( int iMax );
|
int FillData( int iMax );
|
||||||
|
|||||||
Reference in New Issue
Block a user