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;
}
bool SkyLogic::fnStartFx(uint32 a, uint32 b, uint32 c) {
warning("Stub: fnStartFx");
return true;
bool SkyLogic::fnStartFx(uint32 sound, uint32 b, uint32 c) {
return _skySound->fnStartFx(sound);
}
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 "sky/disk.h"
#include "common/engine.h"
@ -46,12 +49,14 @@ public:
void loadSection(uint8 pSection);
void playSound(uint16 sound, uint16 volume);
bool fnStartFx(uint32 sound);
private:
SkyDisk *_skyDisk;
uint8 _soundsTotal;
uint16 _sfxBaseOfs;
uint8 *_soundData;
uint8 *_soundData;
uint8 *_sampleRates, *_sfxInfo;
};
#endif