Etterna 0.74.4
|
This class changes the sampling rate of a sound. More...
#include <RageSoundReader_Resample_Good.h>
Public Member Functions | |
RageSoundReader_Resample_Good (RageSoundReader *pSource, int iSampleRate) | |
RageSoundReader_Resample_Good (const RageSoundReader_Resample_Good &cpy) | |
int | SetPosition (int iFrame) override |
int | Read (float *pBuf, int iFrames) override |
RageSoundReader_Resample_Good * | Copy () const override |
bool | SetProperty (const std::string &sProperty, float fValue) override |
int | GetNextSourceFrame () const override |
float | GetStreamToSourceRatio () const override |
void | SetRate (float fRatio) |
Change the rate of a sound without changing the sample rate. | |
float | GetRate () const |
Retrieve the exact rate. | |
int | GetSampleRate () const override |
![]() | |
RageSoundReader_Filter (RageSoundReader *pSource) | |
RageSoundReader_Filter (const RageSoundReader_Filter &rhs) | |
int | GetLength () const override |
int | GetLength_Fast () const override |
unsigned | GetNumChannels () const override |
RageSoundReader * | GetSource () override |
std::string | GetError () const override |
![]() | |
int | RetriedRead (float *pBuffer, int iFrames, int *iSourceFrame=NULL, float *fRate=NULL) |
Additional Inherited Members | |
![]() | |
enum | { RSRERROR = -1 , END_OF_FILE = -2 , WOULD_BLOCK = -3 , STREAM_LOOPED = -4 } |
![]() | |
std::unique_ptr< RageSoundReader > | m_pSource |
This class changes the sampling rate of a sound.
|
overridevirtual |
Implements RageSoundReader.
|
overridevirtual |
Reimplemented from RageSoundReader_Filter.
float RageSoundReader_Resample_Good::GetRate | ( | ) | const |
Retrieve the exact rate.
|
inlineoverridevirtual |
Reimplemented from RageSoundReader_Filter.
|
overridevirtual |
Reimplemented from RageSoundReader_Filter.
|
overridevirtual |
Reimplemented from RageSoundReader_Filter.
|
overridevirtual |
Reimplemented from RageSoundReader_Filter.
|
overridevirtual |
Reimplemented from RageSoundReader_Filter.
void RageSoundReader_Resample_Good::SetRate | ( | float | fRatio | ) |
Change the rate of a sound without changing the sample rate.
fRatio | the ratio for changing. |