mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
-Fixed signed/unsigned issue with AudioProcessor and derived classes
This commit is contained in:
parent
35626aad74
commit
a42722fd71
5 changed files with 7 additions and 7 deletions
|
@ -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){}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue