aboutsummaryrefslogtreecommitdiff
path: root/scumm.h
diff options
context:
space:
mode:
authorLionel Ulmer2002-04-27 07:42:14 +0000
committerLionel Ulmer2002-04-27 07:42:14 +0000
commit35d305ce64a702d1d34fd5a5c0a5ddb7c1cf40c2 (patch)
treea1bb2d2c5f73c56ecbe150ccf0caae38d43ff38b /scumm.h
parent6ac9551e815b7566ff13d02d1800286290109074 (diff)
downloadscummvm-rg350-35d305ce64a702d1d34fd5a5c0a5ddb7c1cf40c2.tar.gz
scummvm-rg350-35d305ce64a702d1d34fd5a5c0a5ddb7c1cf40c2.tar.bz2
scummvm-rg350-35d305ce64a702d1d34fd5a5c0a5ddb7c1cf40c2.zip
MP3 CD tracks should now be working properly.
Ludde, maybe you should check if Simon is still working OK as now the change of the sound playing handle is 'asynchronous' (ie if you call 'stop' on a sound, the handle will NOT be put to NULL right away, but at the next 'mix' thread call). Maybe we should completely remove this handle stuff and always use instead the index returned by the 'play_XXX' functions. svn-id: r4101
Diffstat (limited to 'scumm.h')
-rw-r--r--scumm.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/scumm.h b/scumm.h
index 4e8c8d209b..421ff60225 100644
--- a/scumm.h
+++ b/scumm.h
@@ -972,7 +972,6 @@ public:
#ifdef COMPRESSED_SOUND_FILE
#define CACHE_TRACKS 10
- #define MP3_BUFFER_SIZE 200000
/* used for mp3 CD music */
@@ -981,8 +980,7 @@ public:
struct mad_header _mad_header[CACHE_TRACKS];
long _mp3_size[CACHE_TRACKS];
FILE* _mp3_tracks[CACHE_TRACKS];
- void* _mp3_buffer;
- PlayingSoundHandle _mp3_handle;
+ int _mp3_index;
int getCachedTrack(int track);
int playMP3CDTrack(int track, int num_loops, int start, int delay);