Jump to content


adding my music to my game


4 replies to this topic

#1 musicgamer

    New Member

  • Members
  • Pip
  • 5 posts

Posted 03 July 2009 - 11:38 PM

Alright, in a few months i'm gonna start on my game project using xna. I'm working on 3 themes for the game right now (using guitar). This may be a easy question to answer, i don't know. What i need to know is how do i get the music into the game. I think i would have to go record it to a cd and download it to the computer, then add it to the game in some file.? but i dont know if it's that simple or not. So could somebody please explain the steps involved.

#2 SamuraiCrow

    Senior Member

  • Members
  • PipPipPipPip
  • 459 posts

Posted 04 July 2009 - 12:08 AM

If XNA is anything like the old versions of DirectX that I used to tinker with, you may be able to play MP3s with it. Also note that the CD ripping software that comes with Windows uses .WMA format instead of MP3 so you may have to download another CD-ripping program. (Having never worked with XNA it might actually work with .WMA anyway. Hopefully somebody more familiar with XNA will post here before too long.)

BTW, if you want XNA help you might mention that in the title of your post, eg. adding music to my XNA game.

#3 musicgamer

    New Member

  • Members
  • Pip
  • 5 posts

Posted 04 July 2009 - 12:30 AM

Thanks for the info, SamuraiCrow. That would be smarter adding xna to the title, but i don't think i can change it now, can I?

#4 rouncer

    Senior Member

  • Members
  • PipPipPipPip
  • 2722 posts

Posted 04 July 2009 - 04:14 AM

You can just play it back raw too, if you store it 11025 you can store 10 minutes worth of sound and bring it up real quick without streaming.

#5 JarkkoL

    Senior Member

  • Members
  • PipPipPipPip
  • 475 posts

Posted 04 July 2009 - 07:47 PM

You don't need to burn your music to CD and rip it off. Your music authoring software probably directly outputs wav or mp3 or ogg, which you can copy to your program's data directory. I would recommend using ogg vorbis since it has good size:quality ratio and doesn't have patent issues like mp3, but I don't know how this works with XNA. Anyway, if you can't output directly the preferred format for XNA from your authoring software, then you can just use some (free) conversion program for it.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users