Mercurial > hg > svapp
diff audioio/ContinuousSynth.h @ 436:72c662fe7ea3 cxx11
Further dedicated-types fixes
author | Chris Cannam |
---|---|
date | Tue, 10 Mar 2015 17:02:52 +0000 |
parents | d2c13ec0f148 |
children |
line wrap: on
line diff
--- a/audioio/ContinuousSynth.h Tue Mar 10 13:22:10 2015 +0000 +++ b/audioio/ContinuousSynth.h Tue Mar 10 17:02:52 2015 +0000 @@ -15,6 +15,8 @@ #ifndef CONTINUOUS_SYNTH_H #define CONTINUOUS_SYNTH_H +#include "base/BaseTypes.h" + /** * Mix into a target buffer a signal synthesised so as to sound at a * specific frequency. The frequency may change with each processing @@ -24,7 +26,7 @@ class ContinuousSynth { public: - ContinuousSynth(int channels, int sampleRate, int blockSize, int waveType); + ContinuousSynth(int channels, sv_samplerate_t sampleRate, sv_frame_t blockSize, int waveType); ~ContinuousSynth(); void setChannelCount(int channels); @@ -45,14 +47,14 @@ * sound switches on and off cleanly. */ void mix(float **toBuffers, - float gain, - float pan, - float f0); + float gain, + float pan, + float f0); private: int m_channels; - int m_sampleRate; - int m_blockSize; + sv_samplerate_t m_sampleRate; + sv_frame_t m_blockSize; double m_prevF0; double m_phase;