Mercurial > hg > svapp
diff audioio/ContinuousSynth.h @ 450:d9d132c0e240 alignment_view
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 20 Apr 2015 09:21:32 +0100 |
parents | 72c662fe7ea3 |
children |
line wrap: on
line diff
--- a/audioio/ContinuousSynth.h Fri Nov 28 10:33:25 2014 +0000 +++ b/audioio/ContinuousSynth.h Mon Apr 20 09:21:32 2015 +0100 @@ -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;