zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit e57c6d285f10b2f5f9f090c173b64de5d7bd6a08
parent c052684fcd2be31c18dde6c50af5b577c2cac55b
Author: fundamental <[email protected]>
Date:   Tue, 30 Aug 2011 16:29:38 -0400

PortAudio: fixing warnings

Diffstat:
Msrc/Nio/PaEngine.cpp | 11++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/Nio/PaEngine.cpp b/src/Nio/PaEngine.cpp @@ -87,20 +87,17 @@ int PaEngine::PAprocess(const void *inputBuffer, void *outputBuffer, const PaStreamCallbackTimeInfo *outTime, PaStreamCallbackFlags flags, void *userData) { + (void) inputBuffer; + (void) outTime; + (void) flags; return static_cast<PaEngine *>(userData)->process((float *) outputBuffer, framesPerBuffer); } int PaEngine::process(float *out, unsigned long framesPerBuffer) { - const Stereo<float *> smp = getNext(); - - //if(framesPerBuffer != smp.l.size()) - // cerr << "Bug: PaEngine::process SOUND_BUFFER_SIZE!=framesPerBuffer" - // << framesPerBuffer << ' ' << smp.l.size() << endl; - - for(int i = 0; i < framesPerBuffer; ++i) { + for(unsigned i = 0; i < framesPerBuffer; ++i) { *out++ = smp.l[i]; *out++ = smp.r[i]; }