[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

Question about nox audio format

Everything about NoX as a game.

Question about nox audio format

Postby panic » Wed Feb 17, 2021 3:49 am

panic
Veteran
Posts: 336
Joined: Thu Nov 12, 2015 3:47 pm

Re: Question about nox audio format

Postby angrykirc » Sun Feb 21, 2021 7:41 pm

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.
Attachments
AudioBagIndex.txt
(2.71 KiB) Downloaded 1147 times
Retired Nox hacker enthusiast. One of those who made latest Map Editor.
User avatar
angrykirc
Initiate
Initiate
Posts: 21
Joined: Thu Jul 10, 2014 3:34 pm


Return to NoX discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron