Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Apr 18, 2024 5:20 am
All times are UTC + 0
audio.idx/bag format
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
cxtian39
Commander


Joined: 11 Feb 2016

PostPosted: Fri Jan 11, 2019 10:32 pm    Post subject:  audio.idx/bag format Reply with quote  Mark this post and the followings unread

Want to let my program play sound in .bag like the game does.
So format information?

_________________

Back to top
View user's profile Send private message Skype Account
MadHQ
Commander


Joined: 07 Nov 2003

PostPosted: Fri Jan 11, 2019 11:56 pm    Post subject: Reply with quote  Mark this post and the followings unread


_________________
MadHQ's Graveyard - Click here!
(Permissions) - (F.A.Q.)

Back to top
View user's profile Send private message Skype Account
cxtian39
Commander


Joined: 11 Feb 2016

PostPosted: Sat Jan 12, 2019 12:23 am    Post subject: Reply with quote  Mark this post and the followings unread


_________________

Back to top
View user's profile Send private message Skype Account
tomsons26lv
Cyborg Artillery


Joined: 30 Dec 2009
Location: Latvia

PostPosted: Sat Jan 12, 2019 2:42 am    Post subject: Reply with quote  Mark this post and the followings unread

struct IDXHeader
{
//0x47414241 or GABA(ABAG) indicates a audio IDX/BAG pair
//0xEBBCEDFA regular data container, in NoX case BlowFish encrypted
 unsigned int Magic;
 unsigned int Unknown;//possibly some versioning
 unsigned int FileCount;
};

//following the header are count of FileCount Entry structs, in case of RA2 IDX its this structure
struct AudioIDXEntry
{
 char Name[16];//someone fucked up at WWP and didn't clear memory tho so make sure to read it to \0
 unsigned int Offset;
 unsigned int Size;
 unsigned int SampleRate;
 unsigned int Flags;
 unsigned int ChunkSize;
};

The BAG is just raw data in RA2's case

Note in Emperor WW combined idx and bag into just a bag.

_________________
Tiberian Dawn, Red Alert, Tiberian Sun ,Red Alert 2,Renegade, Command & Conquer 3,Tiberium and Tiberium Wars and Westwood related image & video archive
https://picasaweb.google.com/113361105083292812413?noredirect=1

Skype live:tomsons26
Don't forget to state who are you otherwise i'll ignore the invite

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1628s ][ Queries: 11 (0.0078s) ][ Debug on ]