comparison audioio/AudioGenerator.cpp @ 442:88ae0e53a5da tonioni

Reset audio generator when clearing ring buffers -- because we are about to jump back in time to the start of the buffered area, so any pending note-offs won't happen until much later, so we should drop the pending notes entirely
author Chris Cannam
date Tue, 24 Mar 2015 16:41:38 +0000
parents aa6fb3516e28
children c48bc6ddfe17
comparison
equal deleted inserted replaced
441:aa6fb3516e28 442:88ae0e53a5da
524 //calls to mixModel 524 //calls to mixModel
525 525
526 sv_frame_t got = blocks * m_processingBlockSize; 526 sv_frame_t got = blocks * m_processingBlockSize;
527 527
528 #ifdef DEBUG_AUDIO_GENERATOR 528 #ifdef DEBUG_AUDIO_GENERATOR
529 cout << "mixModel [clip]: frames " << frames 529 cout << "mixModel [clip]: start " << startFrame << ", frames " << frames
530 << ", blocks " << blocks << endl; 530 << ", blocks " << blocks << ", have " << m_noteOffs.size()
531 << " note-offs" << endl;
531 #endif 532 #endif
532 533
533 ClipMixer::NoteStart on; 534 ClipMixer::NoteStart on;
534 ClipMixer::NoteEnd off; 535 ClipMixer::NoteEnd off;
535 536