Gunn Posted March 26, 2007 Report Share Posted March 26, 2007 How do you get MP3 files to work? I'm using The Games Factory 1.04 Any advice would be great... Link to comment Share on other sites More sharing options...
Syonic Posted March 26, 2007 Report Share Posted March 26, 2007 mci, m8, use that extension and then under device name it qtz.drv..then in the programming menu (the page where ya make your game)..make start frame= open (mp3name.mp3)+play (mp3name.mp3)...sorted! Link to comment Share on other sites More sharing options...
Gunn Posted March 26, 2007 Author Report Share Posted March 26, 2007 I couldn't get it to work... Link to comment Share on other sites More sharing options...
Syonic Posted March 26, 2007 Report Share Posted March 26, 2007 ok well theres an alternative way, on the site theres a tutorial on mci. i think its on the miscallenious part. Link to comment Share on other sites More sharing options...
Gunn Posted March 26, 2007 Author Report Share Posted March 26, 2007 I might have programmed it wrong? Could I possibly have a clearer explianation? Link to comment Share on other sites More sharing options...
RedEchidna Posted March 27, 2007 Report Share Posted March 27, 2007 I had posted this on playing MP3s using the MCI object. Okay. Set the device to either "Waveaudio" or "mciqtz.drv". (I recommend the first.) Now, in the events, tell the MCI object, at whatever time you want the MP3 to start playing, to "Open themp3.mp3" and then to "Play themp3.mp3". If you want it to repeat, then instead of "Play themp3.mp3", use "Play themp3.mp3 repeat". The MP3 has to be in the same folder as the game. (I believe.) When you are done with the MP3, use "close themp3.mp3". If this doesn't work, then let me know. That works with any click product that has the MCI object. Link to comment Share on other sites More sharing options...
hRook Posted March 27, 2007 Report Share Posted March 27, 2007 I'm certain there's a tutorial on using DMC2. If not, download the extension, put bass.dll (if i'm not mistaken) in your C:\Windows\System directory. At the start of your frame, InitBass(), set your sample rate to 44100, bitrate to 128kbps (i don't even know if you have to do that), copy your mp3 file into your game directory, open the file, and play it. Reply if you need any more help. Link to comment Share on other sites More sharing options...
Gunn Posted March 27, 2007 Author Report Share Posted March 27, 2007 RedEchidna, I did what you said but Its still not working. I think I'm getting confused of how to put it in the event editor. Link to comment Share on other sites More sharing options...
Lord Alan Posted March 27, 2007 Report Share Posted March 27, 2007 I'm certain there's a tutorial on using DMC2. If not, download the extension, put bass.dll (if i'm not mistaken) in your C:\Windows\System directory. At the start of your frame, InitBass(), set your sample rate to 44100, bitrate to 128kbps (i don't even know if you have to do that), copy your mp3 file into your game directory, open the file, and play it.Reply if you need any more help. DMC2 is buggy and not as efficient as DirectShow, which is what I would recommend. Also, the bass.dll file is subject to copyright restrictions. It's best to avoid using DMC2 if you can. Link to comment Share on other sites More sharing options...
RedEchidna Posted March 27, 2007 Report Share Posted March 27, 2007 RedEchidna,I did what you said but Its still not working. I think I'm getting confused of how to put it in the event editor. OK, when I say to tell it to do something, choose "Send Command" or whatever it's called, and use the stuff in quotes as the perimeter. Include the quotes. If you want some stuff to copy, look in the spoiler: Object setup Device name: Waveaudio Rest can be left at default Events Event 1: Start of frame -------------MCI: Send command "Open mymp3.mp3" -------------+MCI: Send command "Play mymp3.mp3 repeat" Event 2: End of frame ------------MCI: Send command "Close mymp3.mp3" And to make it stop when a MIDI plays: (Optional) Event 3: XSound and music object: No music is playing -------------------------------------------MCI: Send command "Close mymp3.mp3" Replace "Mymp3.mp3" with the MP3 name. Include the ".mp3" part. Link to comment Share on other sites More sharing options...
Gunn Posted March 27, 2007 Author Report Share Posted March 27, 2007 Thanx for that. I got it working now... Link to comment Share on other sites More sharing options...
PATCHMAN Posted October 30, 2011 Report Share Posted October 30, 2011 so i write on the "end of level"...."close mp3" but it doesnt stop! how do i fix this? when i exit the level. Link to comment Share on other sites More sharing options...
PATCHMAN Posted October 30, 2011 Report Share Posted October 30, 2011 in tgf 1 Link to comment Share on other sites More sharing options...
PATCHMAN Posted November 15, 2011 Report Share Posted November 15, 2011 so when you save it as a standalone game, the sound files have to be placed in the same folder as well? cause when i saved it as a stand alone and ran it. the music didnt play Link to comment Share on other sites More sharing options...
Recommended Posts