aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/sound_2gs.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-05-25 22:43:31 +0200
committerWillem Jan Palenstijn2011-05-25 22:45:21 +0200
commit218d82c62b8078e82dd5dabc165e35563c464600 (patch)
tree75f90cf3c4b62d1c26cd12378cc32e895fe94cc6 /engines/agi/sound_2gs.h
parenta87d33845a9e8253b876ef59d0b9b9fd45a9aaa4 (diff)
downloadscummvm-rg350-218d82c62b8078e82dd5dabc165e35563c464600.tar.gz
scummvm-rg350-218d82c62b8078e82dd5dabc165e35563c464600.tar.bz2
scummvm-rg350-218d82c62b8078e82dd5dabc165e35563c464600.zip
AGI: Fix compilation on 64 bit platforms
I'm unable to test this change, but it avoids using a pointer to store an int temporarily.
Diffstat (limited to 'engines/agi/sound_2gs.h')
-rw-r--r--engines/agi/sound_2gs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/agi/sound_2gs.h b/engines/agi/sound_2gs.h
index 732d3cd12b..1a225300ae 100644
--- a/engines/agi/sound_2gs.h
+++ b/engines/agi/sound_2gs.h
@@ -80,7 +80,7 @@ struct IIgsInstrumentHeader {
uint8 waveCount[2]; ///< Wave count for both generators
struct {
uint8 key; ///< Highest MIDI key to use this wave
- int8* base; ///< Pointer to wave data
+ int offset; ///< Offset of wave data, relative to base
uint size; ///< Wave size
bool halt; ///< Oscillator halted?
bool loop; ///< Loop mode?
@@ -89,6 +89,8 @@ struct IIgsInstrumentHeader {
int16 tune; ///< Fine tune in semitones (8.8 fixed point)
} wave[2][MAX_OSCILLATOR_WAVES];
+ int8* base; ///< Base of wave data
+
/**
* Read an Apple IIGS instrument header from the given stream.
* @param stream The source stream from which to read the data.