Initial ping-pong loop implementation
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user