Next Page

Figuring the pointer of this cointer HELP! by Puck at 11:41 PM EST on February 16, 2014
Can anyone help me figuring out the pointers(addresses) of each file inside this container? This container holds about 39 dsp adpcm audio files.

The pointer information is located at the bottom where the "2AF8" values appear.

There are two more values between those which I presume are the pointers for each audio, but I can't figure them out yet.

So, experts in HCS Forums can you give me a clue or tell me how to locate every audio exact address?

Here's the container in question:
http://tinyurl.com/nfvwrhr

Thanks a million :D
by Puck at 11:45 PM EST on February 16, 2014
the tittle should say "Figuring the pointer of this container HELP!"
by Nisto at 5:30 PM EST on February 17, 2014
I had a look, and it seems like there's an end/start offset value for each track (in respective order) rather than just pointers. Both values needs to be right-shifted by 1. The offsets are relative to 0x40, so "count" from there.

Here, maybe this will help you understand the rest a little better: image.

It appears to start with a loop flag, or maybe how many times it should loop, I don't know. Oddly enough, it seems to be as large as an int32 value.

You might notice that the "2AF8 values" actually isn't always 0x2AF8. My guess is these are sample rates.

After that, there's 8 bytes, which are probably two int32 loop values (when not null of course).

That's followed by the two aforementioned track end/start offsets.

The last 4 bytes I'm not at all sure about. Could be reserved.

Hope that helps.

edited 6:35 PM EST February 17, 2014
by Puck at 6:49 PM EST on February 17, 2014
I see. This is really helpful.
I'm having trouble with the offsets of each track. For example, the first track should start at 0, after shifting to the right the "02", and it should end at "F9"

However, when I do that and add the dsp header I don't get a playable audio. I just get a really small part of it. If I try with "F9F" as ending I get two tracks inside of one.

After some testing I found that the first track should have a size of 7E0 hex (2016 decimal). But I don't see that reflected on the end/start offsets.

For the others values, you're right. There are loopable tracks.

by Nisto at 6:56 PM EST on February 17, 2014
Upload the track you made with dsp header please.
by Puck at 7:08 PM EST on February 17, 2014
Here's the dsp of "9F9" as ending plus header:

http://tinyurl.com/p2llj7d

Here's the dsp with "7E0" as size plus header:

http://tinyurl.com/nt2ndtl

I got the header from the bottom of the container.
by Nisto at 7:19 PM EST on February 17, 2014
That's not right. You're supposed to right-shift (>>1) the full offset values by 1 and go by that. The first track should be 0x7CF in length.
by Puck at 7:22 PM EST on February 17, 2014
mmmm... how do I righ-shift by 1?
by Nisto at 7:25 PM EST on February 17, 2014
If you're on Windows you can do it by (scientific) calculator. Insert as hex, check the "Inv" box, and use Lsh (EDIT: if you're on Win7 you can do Rsh directly, which is right-shift) followed by digit 1, then equals. There are some sites that you can do this at too. It's called Bitwise - they're binary functions.

edited 7:31 PM EST February 17, 2014
by Puck at 7:41 PM EST on February 17, 2014
Ohhh... I get it now :)

It worked. You just solved my problem. Thanks a million, trillion and whatever infinite number :D

Next Page
Go to Page 0 1

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source