This is a help file on how to edit BF2 music files ( they have to be 16 bit mono streams ) and as they have a embedded serial inside them and this makes modding a bit harder then usual.

 I have changed stages 7 8 and 9 as they had going to a website that doesn't exist anymore so I put in a easier way using the venerable old window calculator program in scientific mode to convert hex addresses to decimal.  Download bf2_sound_tools from parts of the help were taken from the instructions in the archive mentioned above.  ( click on any of the shots below for bigger )

First you need to edit the sound file using the free Audacity sound editing it understands all the formats you may need like MP3, OGG, and WAV and is the program to split the stereo track in half to a mono version.
Here i am using a Dead Kennedys song from my old LP collection ( Alternative Tentacles ) click on the point indicated with the arrow to get a menu that will allow you to split the tracks as we need a mono track so that BF2 doesn't get iffy and hangup sometimes.

Here is the menu and the original 1992 disk it has many versions of famous Dead Kennedys song versions by other artists.

Screen after split note we have only one track now that the stereo is split off you should now see the menu item above titled mono is selectable select that one and you are ready to save to wave file.

I have finally succeeded my attempt to figure out how these damn .ogg files work. ]
DICE took the liberty ( unfortunately) to hard code serials into the engine.

So, to achieve a successful input of new sounds, you need to do the following.

First and foremost, you are going to need to grab Vorbis' .ogg tools off of this website (the encoder file set). Now, let's get our hands dirty.

Let's say we wish to replace the M1A2 cockpit ambiance with a Panzer's ambiance...

1. First, create your sounds files as always (.wav).
2. Grab an .ogg file from another tank's cockpit ambiance in Battlefield 2. Let's use the default M1A2 .ogg file.


3. Now, open up your command prompt  by going to Start > Run > cmd ( see image below )
4. You should now pinpoint cmd to the location you had installed the Vorbiss tools. In my case, it's C:\Program    Files\Vorbis\

5. Before we continue, we need to obtain the serial number I talked about earlier: type the following into the cmd    prompt.

   ogginfo M1A2_cockpit.ogg

8. It will give you some information at the top that should look like this:

   New logical stream <#1, serial: 00000e9a>

6. Write the serial number provided (00000e9a) down. You should also pay attention to the    "Nominal    bit-rate" (56.001000),    which you should also write down.

7, 8, 9,10,11
    ( by Steve the SoulJah )
    you can use the windows calculator
                            so you don't even have to download anything :)
 A  Find it in the start button and menus etc
     ( Start>programs>accessories>system tools> calculator )
 B on windows XP to convert the hex into ASCII for the
   oggenc.exe to understand the hex number E9A above
   converts to 3738 number in decimal format

 C Make sure the calculator is in scientific mode under the view menu on the calculator this lets
   you access the hex/Dec buttons will appear this line when executed will give you the E9A serial
   and encode the file radio4.wav to radio4.ogg  here it is using the command at the prompt
 D Oggenc radio4.wav -s 3738 ( note on difference with later document in stage 12 they reversed the switch order I found that didn't work with me but if you have a different version of Oggenc then you may have to do it in that order )

12. To convert the .wav file into an .ogg file, the formula is as follows (typed into the cmd prompt, of course):

    oggenc -b (bitrate) -s (serial number) (newsound.wav)

13. So in or case it should read as follows:

    oggenc -b 56.001000 -s 00003738 Panzer_cockpit.wav

    It should start encoding the .wav file.

14. After the Encoding has completed, you are going to want to make sure the serial numbers and bitrates are the exact     same. So type the following into the cmd prompt to double check them:

ogginfo M1A2_cockpit.ogg
ogginfo Panzer_cockpit.ogg

If the serial numbers match, then you have successfully encoded an .ogg file! If you guys have any questions, feel free to ask. I should also note this works with ANY .ogg file, be it ambience or menu

Here is a screenshot of the radio happy listening in your bunker souljahs oh and yeah thanks for the Urban Decay mod that this works with you can get it at also the bf2_sound_tool kit.

Return to Main Page and over to Battlefield rfa mod page and the BFV camouflage mod and the how to make a air defense souljahs helmet in Navmesh page and how to do some polygon reduction by hand

Go loading music.