diff options
author | Travis Howell | 2007-08-09 05:43:58 +0000 |
---|---|---|
committer | Travis Howell | 2007-08-09 05:43:58 +0000 |
commit | 760986259c9a3031505068aaa75d031e117aeaa4 (patch) | |
tree | f2dfe2714bd6d09575187e51ff36387b3572fc89 /engines/agi | |
parent | 1643dd98bc0e048c77148317b6a7af7cfd9a1207 (diff) | |
download | scummvm-rg350-760986259c9a3031505068aaa75d031e117aeaa4.tar.gz scummvm-rg350-760986259c9a3031505068aaa75d031e117aeaa4.tar.bz2 scummvm-rg350-760986259c9a3031505068aaa75d031e117aeaa4.zip |
Fix compile warnings.
svn-id: r28501
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/sound.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp index b083b77440..b7a2918d33 100644 --- a/engines/agi/sound.cpp +++ b/engines/agi/sound.cpp @@ -270,12 +270,14 @@ static uint16 period[] = { 1448, 1534, 1625, 1722, 1825, 1933 }; +#if 0 static struct AgiNote playSample[] = { {0xff, 0x7f, 0x18, 0x00, 0x7f}, {0xff, 0xff, 0x00, 0x00, 0x00}, {0xff, 0xff, 0x00, 0x00, 0x00}, {0xff, 0xff, 0x00, 0x00, 0x00} }; +#endif static int noteToPeriod(int note) { return 10 * (period[note % 12] >> (note / 12 - 3)); @@ -285,9 +287,9 @@ static int noteToPeriod(int note) { void SoundMgr::unloadSound(int resnum) { if (_vm->_game.dirSound[resnum].flags & RES_LOADED) { - if (_vm->_game.sounds[resnum].flags & SOUND_PLAYING) + if (_vm->_game.sounds[resnum].flags & SOUND_PLAYING) { /* FIXME: Stop playing */ - ; + } /* Release RAW data for sound */ free(_vm->_game.sounds[resnum].rdata); |