InstrumentTrack: fixed muting of frozen patterns in BB tracks

In InstrumentTrack::play(...) the local variable "bb_track" always
was either undefined or NULL due to a lost call (probably during M/V
architecture switch) to bbTrack::findBBTrack(...). This could lead to
crashes and/or misbehaviour when playing frozen patterns in BB tracks.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
(cherry picked from commit fb58dc00ab)
This commit is contained in:
Tobias Doerffel
2009-07-07 01:42:22 +02:00
parent fb56b6757d
commit 3c80a079a2

View File

@@ -570,17 +570,17 @@ bool instrumentTrack::play( const midiTime & _start,
const float frames_per_tick = engine::framesPerTick();
tcoVector tcos;
bbTrack * bb_track;
bbTrack * bb_track = NULL;
if( _tco_num >= 0 )
{
trackContentObject * tco = getTCO( _tco_num );
tcos.push_back( tco );
bb_track = bbTrack::findBBTrack( _tco_num );
}
else
{
getTCOsInRange( tcos, _start, _start + static_cast<int>(
_frames / frames_per_tick ) );
bb_track = NULL;
}
// Handle automation: detuning