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>
This commit is contained in:
Tobias Doerffel
2009-07-07 01:42:22 +02:00
parent 913aa5a6e8
commit fb58dc00ab

View File

@@ -584,17 +584,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