diff options
author | Max Horn | 2003-07-22 20:27:54 +0000 |
---|---|---|
committer | Max Horn | 2003-07-22 20:27:54 +0000 |
commit | 9bd7cdbce04fafcd823c9aee31a00ee16235af81 (patch) | |
tree | 4d4a3dfbd7fa426251b55e25b53a06632bec81a3 /scumm/sound.h | |
parent | dce17ed7ac10135e7c52b3f1816741dff3a55adf (diff) | |
download | scummvm-rg350-9bd7cdbce04fafcd823c9aee31a00ee16235af81.tar.gz scummvm-rg350-9bd7cdbce04fafcd823c9aee31a00ee16235af81.tar.bz2 scummvm-rg350-9bd7cdbce04fafcd823c9aee31a00ee16235af81.zip |
so it's not the endFrame, but the duration (in frames), after all! grmbl, took me long enough to figure this out, now I can fix up system.h, and then decide whom I can blame for this mess (yeah I know I renamed everything to endFrame in here, but it was named incorrectly in many other places already... ah well, at least now we know :-)
svn-id: r9130
Diffstat (limited to 'scumm/sound.h')
-rw-r--r-- | scumm/sound.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/scumm/sound.h b/scumm/sound.h index 6214475dcd..77e8e3e056 100644 --- a/scumm/sound.h +++ b/scumm/sound.h @@ -86,12 +86,14 @@ protected: int _currentCDSound; int _cached_tracks[CACHE_TRACKS]; - int _dig_cd_index; - int _dig_cd_track; - int _dig_cd_start; - int _dig_cd_end; - int _dig_cd_num_loops; - bool _dig_cd_playing; + struct { + int index; + int track; + int start; + int duration; + int num_loops; + bool playing; + } _dig_cd; DigitalTrackInfo *_track_info[CACHE_TRACKS]; int _current_cache; @@ -143,7 +145,7 @@ public: void startCDTimer(); void stopCDTimer(); - void playCDTrack(int track, int numLoops, int startFrame, int endFrame); + void playCDTrack(int track, int numLoops, int startFrame, int duration); void stopCD(); int pollCD() const; void updateCD(); @@ -161,7 +163,7 @@ protected: void playSfxSound_Vorbis(void *sound, uint32 size, PlayingSoundHandle *handle); int getCachedTrack(int track); - int playMP3CDTrack(int track, int numLoops, int startFrame, int endFrame); + int playMP3CDTrack(int track, int numLoops, int startFrame, int duration); int stopMP3CD(); int pollMP3CD() const; int updateMP3CD(); |