Audio tracks and code on same CD?

Started by
0 comments, last by GameDev.net 24 years, 5 months ago
My game currently plays midi and everything is ok. The artist writing the music would LOVE to be able to play his tunes off of the CD as digital music during gameplay. I looked at the MCI API (win9x/nt) and I get how you would play music off of a CD.

There's a couple of things I don't understand. First, he can get me the music in mp3 format. How would I then record to CD as a 'track' of audio? And then, do I need to do anything special in code to distinguish a music 'track' from where the game is stored?

Any FAQ or good pages for this type of info out there?

Steven

Advertisement
Your CDR software, if its any good at all, will provide you support for mixed-mode data and audio CDs. The data track is always track 1, and the audio tracks start at track 2 and continue up... You will most likely need to convert the MP3 file to a WAV file (which will be large, since its uncompressed). CDR software takes wave files as input for its audio tracks. After that, it's as simple as programming the CD-Audio support in and making sure not to try and play track 1

- Splat

This topic is closed to new replies.

Advertisement