[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
NoX Forum • View topic - Question about nox audio format
Page 1 of 1

Question about nox audio format

PostPosted: Wed Feb 17, 2021 3:49 am
by panic

Re: Question about nox audio format

PostPosted: Sun Feb 21, 2021 7:41 pm
by angrykirc
See the file to get an understanding of .idx contents.
Also to get raw PCM data you would need to decompress a chunk of data where the Index entry points (offset in .bag), some audio files are stored in mono and some are in stereo format (1 or 2 channels of audio)
Nox uses a modified IMA ADPCM algorithm, it differs in how stereo samples are interleaving. I has lost the working code for decompression but you can reconstruct in yourself after some experimenting.
Have a nice day.