aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/sound.h
diff options
context:
space:
mode:
authorMatthew Hoops2011-01-11 21:48:49 +0000
committerMatthew Hoops2011-01-11 21:48:49 +0000
commit72b3d1f546564d08a21c6446258ab2f2462fdc3b (patch)
tree7dfbce905d26f238532f44ed7d016a4f6be42be5 /engines/mohawk/sound.h
parent0f04b4609c42850fff12ab9bf71e0acb1bffaf47 (diff)
downloadscummvm-rg350-72b3d1f546564d08a21c6446258ab2f2462fdc3b.tar.gz
scummvm-rg350-72b3d1f546564d08a21c6446258ab2f2462fdc3b.tar.bz2
scummvm-rg350-72b3d1f546564d08a21c6446258ab2f2462fdc3b.zip
MOHAWK: Cleanup Mohawk wave parsing
svn-id: r55212
Diffstat (limited to 'engines/mohawk/sound.h')
-rw-r--r--engines/mohawk/sound.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/engines/mohawk/sound.h b/engines/mohawk/sound.h
index 795b94275e..48d9c2a634 100644
--- a/engines/mohawk/sound.h
+++ b/engines/mohawk/sound.h
@@ -74,7 +74,7 @@ struct SLSTSndHandle {
uint16 id;
};
-struct ADPC_Chunk { // Holds ADPCM status data, but is irrelevant for us.
+struct ADPCMStatus { // Holds ADPCM status data, but is irrelevant for us.
uint32 size;
uint16 itemCount;
uint16 channels;
@@ -85,14 +85,13 @@ struct ADPC_Chunk { // Holds ADPCM status data, but is irrelevant for
} *statusItems;
};
-struct Cue_Chunk {
+struct CueList {
uint32 size;
- uint16 point_count;
+ uint16 pointCount;
struct {
- uint32 position;
- byte length;
+ uint32 sampleFrame;
Common::String name;
- } cueList[CUE_MAX];
+ } points[CUE_MAX];
};
enum {
@@ -101,16 +100,16 @@ enum {
kCodecMPEG2 = 2
};
-struct Data_Chunk {
- uint16 sample_rate;
- uint32 sample_count;
+struct DataChunk {
+ uint16 sampleRate;
+ uint32 sampleCount;
byte bitsPerSample;
byte channels;
uint16 encoding;
uint16 loop;
uint32 loopStart;
uint32 loopEnd;
- Common::SeekableReadStream *audio_data;
+ Common::SeekableReadStream *audioData;
};
class MohawkEngine;