fixed crash in processAudioBuffer when notePlayHandle was NULL (crashed certain instruments like sf2)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1936 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Andrew Kelley
2008-12-16 02:31:51 +00:00
parent 3392c83481
commit 876cf8df8e
2 changed files with 6 additions and 1 deletions

View File

@@ -15,6 +15,10 @@
- shift drag on an unselected note didn't work (FIXED)
- added a note detuning tool
- fixed mouse cursor glitch when mousing over notes
* src/tracks/instrument_track.cpp:
fixed crash in processAudioBuffer when notePlayHandle was NULL
(crashed certain instruments like sf2)
2008-12-14 Andrew Kelley <superjoe30/at/gmail/dot/com>

View File

@@ -180,7 +180,8 @@ void instrumentTrack::processAudioBuffer( sampleFrame * _buf,
_frames,
( _n != NULL ) ? _n->offset() : 0,
panningToVolumeVector(
(int) m_panningModel.value() + _n->getPanning(),
(int) m_panningModel.value() +
( _n != NULL ) ? _n->getPanning() : 0,
v_scale ),
&m_audioPort );
}