-Fixed signed/unsigned issue with AudioProcessor and derived classes

This commit is contained in:
Harry van Haaren 2013-08-15 23:51:09 +01:00
parent 35626aad74
commit a42722fd71
5 changed files with 7 additions and 7 deletions

View file

@ -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){}

View file

@ -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);
}

View file

@ -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;

View file

@ -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];

View file

@ -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();