Removed superfluous variable checkings. Made it so that Apple IIGS mixing code doesn't try to mix MIDI sounds yet as mixing them isn't yet supported.

svn-id: r28673
This commit is contained in:
Kari Salminen 2007-08-19 23:33:22 +00:00
parent 72fd923cf5
commit 42e257b08d

View File

@ -667,7 +667,11 @@ uint32 SoundMgr::mixSound(void) {
return BUFFER_SIZE;
// Handle Apple IIGS sound mixing here
if (_vm->_soundemu == SOUND_EMU_APPLE2GS && _playing && _playingSound != -1) {
if (_vm->_soundemu == SOUND_EMU_APPLE2GS) {
AgiSoundType type = (AgiSoundType) _vm->_game.sounds[_playingSound]->type();
// Currently we only support mixing a single sample in Apple IIGS mixing code.
if (type != AGI_SOUND_SAMPLE)
return IIGS_BUFFER_SIZE;
//IIgsWaveInfo &waveInfo = _IIgsChannel.ins.oscList(0).waves[0];
//uint period = noteToPeriod(fracToInt(_IIgsChannel.note + FRAC_HALF));