Sample Indices

Sample Indices


Replies | Reply | Tomb Raider Level Editor & Utility Discussion Forum

Posted by BitShifter on May 05, 2000 at 11:57:58:

In reply to: Re: Sample indices posted by Turbo Pascal on May 05, 2000 at 11:35:10:

: You are right for TR1, the samples_index are offset in
: the PHD, the samples offset are used for the
: samples'starting location in the PHD, because all game
: sounds was included in the PHD.

: But for TR2/TR3 all sounds are in MAIN.SFX and the
: samples_index ARE NOT OFFSET INTO MAIN.SFX, they are
: just the sound index on the sound list in MAIN.SXF like 1,2,3,4,5 etc,

: So, if Bart replace the sound #20 for another biger, we will not have a
: problem, (still being the sound #20 in the list).

:
: Turbo pascal.

Chuncky files like the TRs level *need* a set of offset, these might stored in the list referenced by the index or by some other file.
Of course they might have gone wastefull on us and offseted all sound file by a fixed amount (then there is a maximum size) and all offsets are calculated from the index directly (like index# * wav size in byte, starting at #position: just read it and stop when the file itself stops)

That would explain why TR3 sound bites sometime come in two parts. Look for the biggest one and look at the CD for the file themselves: they might be placed at regular intervals instead of pacjed together.

Good luck.



Replies:



Reply

Name:

Email:

Subject:

Message:

Optional
Link URL:

Link Title:

Image URL:


Replies | Reply | Tomb Raider Level Editor & Utility Discussion Forum