aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/sound.h
diff options
context:
space:
mode:
authorKostas Nakos2007-02-26 18:34:00 +0000
committerKostas Nakos2007-02-26 18:34:00 +0000
commit1af4932242e637123099512e1aed80181a423687 (patch)
tree6b6fad20202886b6227225d1b3d910fc9602184a /engines/agi/sound.h
parent017c1b24f7e5f8caa870adc8e6c1989a668862f0 (diff)
downloadscummvm-rg350-1af4932242e637123099512e1aed80181a423687.tar.gz
scummvm-rg350-1af4932242e637123099512e1aed80181a423687.tar.bz2
scummvm-rg350-1af4932242e637123099512e1aed80181a423687.zip
Fix alignment issues in wince port.
This patch/bug is closely related to the behavior shown in agos engine (see https://sourceforge.net/tracker/?func=detail&aid=1657436&group_id=37116&atid=418822). Every time structs are used to extract data from a buffer, these structs have to be packed. It is not OK to assume that the compiler does not pad the struct, or that it doesn't have alignment assumptions voodoo (see cited patch). svn-id: r25881
Diffstat (limited to 'engines/agi/sound.h')
-rw-r--r--engines/agi/sound.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/agi/sound.h b/engines/agi/sound.h
index 8a4f6a5deb..5f67faa142 100644
--- a/engines/agi/sound.h
+++ b/engines/agi/sound.h
@@ -56,6 +56,8 @@ struct AgiSound {
uint16 type; /**< sound resource type */
};
+#include "common/pack-start.h"
+
/**
* AGI sound note structure.
*/
@@ -67,6 +69,8 @@ struct AgiNote {
uint8 vol; /**< note volume */
};
+#include "common/pack-end.h"
+
/**
* AGI engine sound channel structure.
*/