diff options
author | Filippos Karapetis | 2007-11-20 00:26:36 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-11-20 00:26:36 +0000 |
commit | ea569b48d0f3f59321b90402f15c04c015803643 (patch) | |
tree | 8054e5af72bbced1fae524091884dc1695578eeb | |
parent | e010c59277474715b5f02af72e0645fb4d87022b (diff) | |
download | scummvm-rg350-ea569b48d0f3f59321b90402f15c04c015803643.tar.gz scummvm-rg350-ea569b48d0f3f59321b90402f15c04c015803643.tar.bz2 scummvm-rg350-ea569b48d0f3f59321b90402f15c04c015803643.zip |
Implemented music in Mickey's Space Adventure, thanks to the now common softsynth square wave generator
svn-id: r29575
-rw-r--r-- | engines/agi/preagi_mickey.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/agi/preagi_mickey.cpp b/engines/agi/preagi_mickey.cpp index a766b15e7b..0a0c609ac4 100644 --- a/engines/agi/preagi_mickey.cpp +++ b/engines/agi/preagi_mickey.cpp @@ -34,6 +34,8 @@ #include "agi/graphics.h" #define IDI_SND_OSCILLATOR_FREQUENCY 1193180 +#define IDI_SND_TIMER_RESOLUTION 0.0182 +#define IDI_SND_PITCH 1.5 namespace Agi { @@ -579,14 +581,11 @@ void Mickey::printDatMessage(int iStr) { // Sound void Mickey::playNote(MSA_SND_NOTE note) { - // TODO if (!note.counter) { - //_vm->_sound->playNote(1, 0, 160); // ScummVM - //playNote(1, 0, note.length / IDI_SND_TIMER_RESOLUTION); // TrollVM + // Pause + _vm->_system->delayMillis(note.length / IDI_SND_TIMER_RESOLUTION); } else { - //_vm->_sound->playNote(1, IDI_SND_OSCILLATOR_FREQUENCY / note.counter, 160); // ScummVM - //playNote(1, IDI_SND_OSCILLATOR_FREQUENCY / note.counter, - // note.length / IDI_SND_TIMER_RESOLUTION / IDI_SND_PITCH); // TrollVM + _vm->playNote(IDI_SND_OSCILLATOR_FREQUENCY / note.counter, note.length / IDI_SND_TIMER_RESOLUTION / IDI_SND_PITCH); } } |