Author Topic: Extract Music from SGDK2  (Read 4526 times)

SmartBoy16

  • Contributor
  • Fanatic
  • **
  • Posts: 587
  • Looking for inspiration.....
    • View Profile
    • Email
Extract Music from SGDK2
« on: 2007-12-10, 08:02:00 AM »
is there a way to get the music file used in an sgdk2 file? ???
Looking to the skies.....

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: Extract Music from SGDK2
« Reply #1 on: 2007-12-10, 09:02:52 AM »
If you generate the project (F7), it will create the source files necessary to compile and link the project, including the binary data for the sound.  Find the folder the .SGDK2 file is in, look for the folder underneath that by the same name as the file, and find the file with the same name as the sound object in the .SGDK2 file, with a .bin extension.  If your object is called Music.cs, find Music.bin.  Then copy it somewhere else and change the extension on the file to the original file type, and there's the original music.
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Extract Music from SGDK2
« Reply #2 on: 2007-12-11, 07:05:03 AM »
What appropriate timing for that question.  Just yesterday I added a feature to more easily extract the binary data to a file.  But until then, Durnurd's method should work well.  The trick is that you have to know the format of the data so you know what extension to put on the file.  Most of the music included in the library is in MOD format.