add sound effects

svn-id: r8134
This commit is contained in:
Oliver Kiehl 2003-05-30 11:07:30 +00:00
parent 4458704250
commit ab3e5f8d40
3 changed files with 1019 additions and 4 deletions

View File

@ -1991,9 +1991,8 @@ bool SkyLogic::fnSetFont(uint32 font, uint32 b, uint32 c) {
return true; return true;
} }
bool SkyLogic::fnStartFx(uint32 a, uint32 b, uint32 c) { bool SkyLogic::fnStartFx(uint32 sound, uint32 b, uint32 c) {
warning("Stub: fnStartFx"); return _skySound->fnStartFx(sound);
return true;
} }
bool SkyLogic::fnStopFx(uint32 a, uint32 b, uint32 c) { bool SkyLogic::fnStopFx(uint32 a, uint32 b, uint32 c) {

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,9 @@
* *
*/ */
#ifndef SKYSOUND_H
#define SKYSOUND_H
#include "sound/mixer.h" #include "sound/mixer.h"
#include "sky/disk.h" #include "sky/disk.h"
#include "common/engine.h" #include "common/engine.h"
@ -46,6 +49,7 @@ public:
void loadSection(uint8 pSection); void loadSection(uint8 pSection);
void playSound(uint16 sound, uint16 volume); void playSound(uint16 sound, uint16 volume);
bool fnStartFx(uint32 sound);
private: private:
SkyDisk *_skyDisk; SkyDisk *_skyDisk;
@ -55,3 +59,4 @@ private:
uint8 *_sampleRates, *_sfxInfo; uint8 *_sampleRates, *_sfxInfo;
}; };
#endif