3#ifndef RAGE_SOUND_READER_RESAMPLE_GOOD_H
4#define RAGE_SOUND_READER_RESAMPLE_GOOD_H
6#include "RageSoundReader_Filter.h"
18 int SetPosition(
int iFrame)
override;
19 int Read(
float* pBuf,
int iFrames)
override;
22 bool SetProperty(
const std::string& sProperty,
float fValue)
override;
23 int GetNextSourceFrame()
const override;
24 float GetStreamToSourceRatio()
const override;
36 int GetSampleRate()
const override {
return m_iSampleRate; }
40 void ReopenResampler();
41 void GetFactors(
int& iDownFactor,
int& iUpFactor)
const;
43 std::vector<RageSoundResampler_Polyphase*> m_apResamplers;
Definition RageSoundReader_Filter.h:10
This class changes the sampling rate of a sound.
Definition RageSoundReader_Resample_Good.h:13
float GetRate() const
Retrieve the exact rate.
Definition RageSoundReader_Resample_Good.cpp:784
void SetRate(float fRatio)
Change the rate of a sound without changing the sample rate.
Definition RageSoundReader_Resample_Good.cpp:762
Definition RageSoundReader.h:7
Definition RageSoundReader_Resample_Good.cpp:482