aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2009-12-23 12:49:38 +0000
committerMartin Kiewitz2009-12-23 12:49:38 +0000
commit162b6972207ae80e741d5671902b03cef8a142b9 (patch)
treedfdc8ff3cd4b312156c8306d76658963c2d3709f /engines
parent957737d0182b9a99225e3645e60087d7fdc36a4b (diff)
downloadscummvm-rg350-162b6972207ae80e741d5671902b03cef8a142b9.tar.gz
scummvm-rg350-162b6972207ae80e741d5671902b03cef8a142b9.tar.bz2
scummvm-rg350-162b6972207ae80e741d5671902b03cef8a142b9.zip
SCI: sound resource added data format comments
svn-id: r46495
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/resource.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index 62a936c15d..c8b109f070 100644
--- a/engines/sci/resource.cpp
+++ b/engines/sci/resource.cpp
@@ -1828,6 +1828,12 @@ SoundResource::SoundResource(uint32 resNumber, ResourceManager *resMan) : _resMa
aTracks = new tagTrack[nTracks];
ptr = res->data;
for (int i = 0; i < nTracks; i++) {
+ // SCI01/SCI1/SCI11
+ // Track info starts with track-type:BYTE
+ // Then track-information gets appeneded Unknown:WORD, TrackOffset:WORD, TrackSize:WORD
+ // 0xFF:BYTE as terminator to end that track and begin with another track-type
+ // track-type 0xFF means end-of-tracks
+
aTracks[i].type = (kTrackType) * ptr++;
// counting # of channels used
p1 = ptr;