Help - Search - Members - Calendar
Full Version: Aero Music Player
Game Maker Community > Games > Game Maker Creations > Tools & Applications
littledanno
DOWNLOAD VIA WILLHOSTFORFOOD!
DOWNLOAD VIA MEDIAFIRE

  • Play/Pause/Stop For CD Tracks
  • Visual Effects When Pessing 1,2,3,4,5,0
  • Fullscreen When Pressing F4
  • AND MORE
Rolfero
Can you make it support files directly from the computer, instead of having to insert a CD? I'm... a little low on music CD's, and therefore couldn't test it.
littledanno
ok...ill look into it as I do not how to do this :/
Rolfero
Well, these functions could be useful:
sound_add(filename,kind,preload)
get_open_filename(filter,defaultname)
for example, by using this line:
sound_play(sound_add(get_open_filename("Music files|*.wav;*.mp3;*.mid|All files|*.*",""),0,true))
You make the user choose a file, and then plays it.
littledanno
ooooh biggrin.gif thank you very much...and what would i do so that when you press the pause or stop button it does so?
Rolfero
Hmm, well, sound_stop_all() stops all sounds, but I don't know if they are paused though.
sound_stop(index) stops it naturally, so you could use the following code:
Load sound: global.current_music_file = get_open_filename("Music files|*.wav;*.mp3;*.mid|All files|*.*","")
Play loaded sound: sound_play(global.current_music_file)
Stop loaded sound: sound_stop(global.current_music_file)
But I still don't know if that pauses the sound or stops it.
littledanno
ok...thanks again smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.