Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
RageSoundReader_Resample_Good Class Reference

This class changes the sampling rate of a sound. More...

#include <RageSoundReader_Resample_Good.h>

Inheritance diagram for RageSoundReader_Resample_Good:
Inheritance graph
[legend]
Collaboration diagram for RageSoundReader_Resample_Good:
Collaboration graph
[legend]

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_GoodCopy () 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
 
- 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
 
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)
 

Additional Inherited Members

- Public Types inherited from RageSoundReader
enum  { RSRERROR = -1 , END_OF_FILE = -2 , WOULD_BLOCK = -3 , STREAM_LOOPED = -4 }
 
- Protected Attributes inherited from RageSoundReader_Filter
std::unique_ptr< RageSoundReaderm_pSource
 

Detailed Description

This class changes the sampling rate of a sound.

Member Function Documentation

◆ Copy()

RageSoundReader_Resample_Good * RageSoundReader_Resample_Good::Copy ( ) const
overridevirtual

Implements RageSoundReader.

◆ GetNextSourceFrame()

int RageSoundReader_Resample_Good::GetNextSourceFrame ( ) const
overridevirtual

Reimplemented from RageSoundReader_Filter.

◆ GetRate()

float RageSoundReader_Resample_Good::GetRate ( ) const

Retrieve the exact rate.

Returns
the exact rate.

◆ GetSampleRate()

int RageSoundReader_Resample_Good::GetSampleRate ( ) const
inlineoverridevirtual

Reimplemented from RageSoundReader_Filter.

◆ GetStreamToSourceRatio()

float RageSoundReader_Resample_Good::GetStreamToSourceRatio ( ) const
overridevirtual

Reimplemented from RageSoundReader_Filter.

◆ Read()

int RageSoundReader_Resample_Good::Read ( float *  pBuf,
int  iFrames 
)
overridevirtual

Reimplemented from RageSoundReader_Filter.

◆ SetPosition()

int RageSoundReader_Resample_Good::SetPosition ( int  iFrame)
overridevirtual

Reimplemented from RageSoundReader_Filter.

◆ SetProperty()

bool RageSoundReader_Resample_Good::SetProperty ( const std::string &  sProperty,
float  fValue 
)
overridevirtual

Reimplemented from RageSoundReader_Filter.

◆ SetRate()

void RageSoundReader_Resample_Good::SetRate ( float  fRatio)

Change the rate of a sound without changing the sample rate.

Parameters
fRatiothe ratio for changing.

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