3#ifndef RAGE_SOUND_READER_RESAMPLE_GOOD_H
4#define RAGE_SOUND_READER_RESAMPLE_GOOD_H
6#include "RageSoundReader_Filter.h"
17 int SetPosition(
int iFrame)
override;
18 int Read(
float* pBuf,
int iFrames)
override;
21 bool SetProperty(
const std::string& sProperty,
float fValue)
override;
22 int GetNextSourceFrame()
const override;
23 float GetStreamToSourceRatio()
const override;
35 int GetSampleRate()
const override {
return m_iSampleRate; }
39 void ReopenResampler();
40 void GetFactors(
int& iDownFactor,
int& iUpFactor)
const;
42 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:12
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