Use the music command. If you want it to always be playing while you play (don't see why since without a script randomizing which song is played, I think it would get too repetitive and annoying) you can add it to alias mapstartalways so everytime a map is loaded the music starts to play.
ie
The command uses 3 arguments, the first one being the only required one. They are as follows:
The music must be in ".ogg" format and somewhere within your AC installation, AFAIK.
As an example, take a look at the latest revision of tutorial.cfg, where the script loops the default flag grab music 5 times while the demo is playing via alias mapstartonce. (See line 5.)
HTH! :)
Edit:
An easier alternative would be, use a media player in the background! :P
Also, turns out you'll have to use the registermusic command first to register it before you can play it via the music command! See /config/sounds.cfg for example use of "registermusic".
ie
[SELECT ALL] Code:
if (strstr $mapstartalways music) [] [add2alias mapstartalways [music blahblahblahb...]
The command uses 3 arguments, the first one being the only required one. They are as follows:
[SELECT ALL] Code:
/music "path/file_name_without_extension" total_play_time_in_milliseconds command/code_block_to_execute_when_music_is_finished
As an example, take a look at the latest revision of tutorial.cfg, where the script loops the default flag grab music 5 times while the demo is playing via alias mapstartonce. (See line 5.)
HTH! :)
Edit:
An easier alternative would be, use a media player in the background! :P
Also, turns out you'll have to use the registermusic command first to register it before you can play it via the music command! See /config/sounds.cfg for example use of "registermusic".