diff options
author | Martin Kiewitz | 2009-12-23 16:51:41 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-12-23 16:51:41 +0000 |
commit | 096b46f1d5f77f97a59a7087d203efc4c834dccb (patch) | |
tree | 4a6faca8974b397af3fe550e861a471f137978ed /engines | |
parent | f716942919af0de50023188060592d648ceeb8ce (diff) | |
download | scummvm-rg350-096b46f1d5f77f97a59a7087d203efc4c834dccb.tar.gz scummvm-rg350-096b46f1d5f77f97a59a7087d203efc4c834dccb.tar.bz2 scummvm-rg350-096b46f1d5f77f97a59a7087d203efc4c834dccb.zip |
SCI: new music code / wip support for sci0 music
svn-id: r46507
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/resource.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 14a72af1b0..47cbf5259e 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -1821,7 +1821,19 @@ SoundResource::SoundResource(uint32 resNumber, ResourceManager *resMan, SciVersi switch (_soundVersion) { case SCI_VERSION_0_EARLY: - error("SCI0 sound data currently not supported"); + _trackCount = 1; + _tracks = new Track[_trackCount]; + _tracks->nDigital = 0xFF; + _tracks->type = TRACKTYPE_NONE; + _tracks->channelCount = 1; + _tracks->channels = new Channel[_tracks->channelCount]; + channel = _tracks->channels; + channel->data = resource->data + 0x21; + channel->size = resource->size - 0x21; + channel->number = 0; + channel->poly = 0; + channel->time = channel->prev = 0; + channel->unk = 0; break; case SCI_VERSION_1_EARLY: |