diff --git a/src/audioprocessor.hxx b/src/audioprocessor.hxx index 4a3c7cc..c78ba7a 100644 --- a/src/audioprocessor.hxx +++ b/src/audioprocessor.hxx @@ -10,7 +10,7 @@ class AudioProcessor AudioProcessor(){} /// copies the track output to master buffer, sidechain & post-side buffer - virtual void process(int nframes, Buffers* buffers){printf("AudioProcessor::process() not derived\n");} + virtual void process(unsigned int nframes, Buffers* buffers){printf("AudioProcessor::process() not derived\n");} /// set main mix, 0-1 virtual void setMaster(float value){} diff --git a/src/looper.cxx b/src/looper.cxx index c6f234d..4fc3618 100644 --- a/src/looper.cxx +++ b/src/looper.cxx @@ -196,7 +196,7 @@ void Looper::setSample(int scene, AudioBuffer* ab) writeToGuiRingbuffer( &e ); } -void Looper::process(int nframes, Buffers* buffers) +void Looper::process(unsigned int nframes, Buffers* buffers) { float* out = buffers->audio[Buffers::TRACK_0 + track]; @@ -233,7 +233,7 @@ void Looper::process(int nframes, Buffers* buffers) playSpeed = float(actualFrames) / targetFrames; } - for(int i = 0; i < nframes; i++ ) + for(unsigned int i = 0; i < nframes; i++ ) { out[i] = clips[clip].getSample(playSpeed); } diff --git a/src/looper.hxx b/src/looper.hxx index 1b73642..7252b1f 100644 --- a/src/looper.hxx +++ b/src/looper.hxx @@ -43,7 +43,7 @@ class Looper : public AudioProcessor, public TimeObserver LooperClip* getClip(int scene); void updateControllers(); - void process(int nframes, Buffers* buffers); + void process(unsigned int nframes, Buffers* buffers); private: const int track; diff --git a/src/trackoutput.cxx b/src/trackoutput.cxx index b8df5ad..7f1ad9d 100644 --- a/src/trackoutput.cxx +++ b/src/trackoutput.cxx @@ -53,7 +53,7 @@ void TrackOutput::setSend( int send, float value ) } -void TrackOutput::process(int nframes, Buffers* buffers) +void TrackOutput::process(unsigned int nframes, Buffers* buffers) { // get & zero track buffer float* trackBuffer = buffers->audio[Buffers::TRACK_0 + track]; @@ -85,7 +85,7 @@ void TrackOutput::process(int nframes, Buffers* buffers) float* masterL = buffers->audio[Buffers::MASTER_OUT_L]; float* masterR = buffers->audio[Buffers::MASTER_OUT_R]; - for(int i = 0; i < nframes; i++) + for(unsigned int i = 0; i < nframes; i++) { float tmp = trackBuffer[i]; diff --git a/src/trackoutput.hxx b/src/trackoutput.hxx index 69efae7..967b013 100644 --- a/src/trackoutput.hxx +++ b/src/trackoutput.hxx @@ -26,7 +26,7 @@ class TrackOutput : public AudioProcessor void setSend( int send, float value ); /// copies the track output to master buffer, sidechain & post-side buffer - void process(int nframes, Buffers* buffers); + void process(unsigned int nframes, Buffers* buffers); ~TrackOutput();