HydrogenAudio

Lossy Audio Compression => Other Lossy Codecs => Topic started by: mypantsfelldown on 2020-09-26 23:38:04

Title: See byte position of current sample/frame?
Post by: mypantsfelldown on 2020-09-26 23:38:04
I'm trying to encode an EAlayer3 SNR that loops, but only within a specific region of the file. From analysing game files, I've noticed that there can be an "intro" segment and a "body" segment which is the actual loop. I've figured out where to alter the bytes, but it requires knowing the exact sample and offset of where the loop should begin, and I'm not quite sure how to go about getting that information.

I'm quite new to all of this, so I feel like I might be missing something rather obvious... Although I wouldn't really expect anyone to know much about this format. Any advice is much appreciated.
Title: Re: See byte position of current sample/frame?
Post by: kode54 on 2020-09-27 00:55:55
You may find better answers for dealing with game related formats on the hcs64.com forum, and its associated Discord server. Just be sure to stick around in either place as well, as not everyone's an expert, and the people close to that level aren't online 24/7, but your message will probably be seen.

If you want a self-help remedy, you can look at the source code to VGMStream and try to decipher how the format is parsed and decoded, and even maybe write some code that can do what you want.
Title: Re: See byte position of current sample/frame?
Post by: mypantsfelldown on 2020-09-27 10:17:22
Comprehending stuff like that is a little bit above my paygrade at the moment, but I'll take a look if nobody else has any ideas. I'll certainly be making a post there. Thank you!