aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/sound.h
diff options
context:
space:
mode:
authorMatthew Hoops2012-06-10 21:23:28 -0400
committerMatthew Hoops2012-06-10 21:23:28 -0400
commit42f4fe359c16dfe5291e6274464b76168b117135 (patch)
treed08432d65c4784196906bb6c93fd0b86d67006cd /engines/tony/sound.h
parent264721a19405920a57fece9b5bd09d773055531c (diff)
downloadscummvm-rg350-42f4fe359c16dfe5291e6274464b76168b117135.tar.gz
scummvm-rg350-42f4fe359c16dfe5291e6274464b76168b117135.tar.bz2
scummvm-rg350-42f4fe359c16dfe5291e6274464b76168b117135.zip
TONY: Convert FPSFX to our mixer code
Only thing missing is the hEndOfBuffer code, but this is a good start
Diffstat (limited to 'engines/tony/sound.h')
-rw-r--r--engines/tony/sound.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/engines/tony/sound.h b/engines/tony/sound.h
index be3c2da319..6ebf30f22b 100644
--- a/engines/tony/sound.h
+++ b/engines/tony/sound.h
@@ -29,11 +29,16 @@
#ifndef TONY_SOUND_H
#define TONY_SOUND_H
+#include "audio/mixer.h"
#include "common/file.h"
#include "tony/gfxcore.h"
#include "tony/loc.h"
#include "tony/utils.h"
+namespace Audio {
+class RewindableAudioStream;
+}
+
namespace Tony {
class FPSTREAM;
@@ -181,27 +186,16 @@ class FPSFX {
\****************************************************************************/
private:
- /*
- HWND hwnd;
- LPDIRECTSOUND lpDS;
- LPDIRECTSOUNDBUFFER lpDSBuffer; // Buffer DirectSound
- */
bool bSoundSupported; // TRUE se il suono e' attivo
bool bFileLoaded; // TRUE se e' stato aperto un file
bool bLoop; // TRUE se bisogna loopare l'effetto sonoro
- bool bPaused;
int lastVolume;
- bool bStereo; // TRUE se è stereo
- bool b16bit; // TRUE se è 16 bit
- uint32 dwFreq; // Frequenza originale di campionamento
-
- bool bIsPlaying; // TRUE se si sta playando l'effetto sonoro
-
bool bIsVoice;
+ bool bPaused;
-// LPDIRECTSOUNDNOTIFY lpDSNotify; // Notify degli hotspot nel buffer
-// DSBPOSITIONNOTIFY dspnHot[2];
+ Audio::AudioStream *_stream;
+ Audio::SoundHandle _handle;
public:
uint32 hEndOfBuffer;