22#ifndef SNATCHER_SOUND_H
23#define SNATCHER_SOUND_H
25#include "common/platform.h"
26#include "snatcher/saveflags.h"
33class SeekableReadStream;
34class SeekableWriteStream;
49 void cdaPlay(
int track);
51 bool cdaIsPlaying()
const;
52 uint32 cdaGetTime()
const;
56 FMStatus() : music(0), sfx(0), sync(0), blocked(0), reduceVol2(0) {}
64 void fmSendCommand(
int cmd,
int restoreVolume,
int trackType = 0);
66 void fmBlock(
int block) { _fmStatus.blocked = block; }
69 PCMStatus() : statusBits(0), blocked(0), resourceId(-1), resourceId2(-1) {}
76 void pcmSendCommand(
int cmd,
int arg);
77 void pcmInitSound(
int sndId);
79 void pcmBlock(
int block) { _pcmStatus.blocked = block; }
81 void pause(
bool toggle);
84 void reduceVolume2(
bool enable);
86 void setMusicVolume(
int vol);
87 void setSoundEffectVolume(
int vol);
97 int16 _cdaRestoreTrack;
98 uint32 _cdaRestoreTime;
Definition: resource.h:121
Definition: sound_device.h:36
Definition: algorithm.h:29