Initial ping-pong loop implementation

This commit is contained in:
Vesa
2014-04-03 03:50:20 +03:00
parent 61569864b4
commit 0cfda7d1f4
4 changed files with 178 additions and 28 deletions

View File

@@ -141,7 +141,7 @@ void audioFileProcessor::playNote( NotePlayHandle * _n,
if( m_sampleBuffer.play( _working_buffer,
(handleState *)_n->m_pluginData,
frames, _n->frequency(),
m_loopModel.value() ) )
m_loopModel.value() ? SampleBuffer::LoopPingPong : SampleBuffer::LoopOff ) )
{
applyRelease( _working_buffer, _n );
instrumentTrack()->processAudioBuffer( _working_buffer,

View File

@@ -149,7 +149,7 @@ void patmanInstrument::playNote( NotePlayHandle * _n,
hdata->sample->frequency();
if( hdata->sample->play( _working_buffer, hdata->state, frames,
play_freq, m_loopedModel.value() ) )
play_freq, m_loopedModel.value() ? SampleBuffer::LoopOn : SampleBuffer::LoopOff ) )
{
applyRelease( _working_buffer, _n );
instrumentTrack()->processAudioBuffer( _working_buffer,