aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.h
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-08-31 20:26:21 +0000
committerPaweł Kołodziejski2003-08-31 20:26:21 +0000
commit2533b23a601b053dd5394e8da9e787504d37e8ba (patch)
treeb9f35b8e7044d6ad18cc8917a88fcd58bc742ee2 /sound/mixer.h
parent54f5caedc5f93f6a7ae067f1fda08c2dedd79de1 (diff)
downloadscummvm-rg350-2533b23a601b053dd5394e8da9e787504d37e8ba.tar.gz
scummvm-rg350-2533b23a601b053dd5394e8da9e787504d37e8ba.tar.bz2
scummvm-rg350-2533b23a601b053dd5394e8da9e787504d37e8ba.zip
added mixer features: volume and pan control per channel
svn-id: r9944
Diffstat (limited to 'sound/mixer.h')
-rw-r--r--sound/mixer.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/mixer.h b/sound/mixer.h
index 3ecc6997ed..4604559f47 100644
--- a/sound/mixer.h
+++ b/sound/mixer.h
@@ -83,7 +83,7 @@ public:
// start playing a raw sound
int playRaw(PlayingSoundHandle *handle, void *sound, uint32 size, uint rate, byte flags,
- int id = -1, uint32 loopStart = 0, uint32 loopEnd = 0);
+ byte volume, int8 pan, int id = -1, uint32 loopStart = 0, uint32 loopEnd = 0);
#ifdef USE_MAD
int playMP3(PlayingSoundHandle *handle, File *file, uint32 size);
int playMP3CDTrack(PlayingSoundHandle *handle, File *file, mad_timer_t duration);
@@ -107,10 +107,14 @@ public:
/** stop playing the channel for the given handle */
void stopHandle(PlayingSoundHandle handle);
+ void setChannelVolume(PlayingSoundHandle handle, byte volume);
+
+ void setChannelPan(PlayingSoundHandle handle, int8 pan);
+
bool isChannelActive(PlayingSoundHandle handle);
/** Start a new stream. */
- int newStream(void *sound, uint32 size, uint rate, byte flags, uint32 buffer_size);
+ int newStream(void *sound, uint32 size, uint rate, byte flags, uint32 buffer_size, byte volume, int8 pan);
/** Append to an existing stream. */
void appendStream(int index, void *sound, uint32 size);