littledanno
Jul 20 2009, 08:02 PM
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
Jul 20 2009, 09:31 PM
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
Jul 21 2009, 11:28 AM
ok...ill look into it as I do not how to do this :/
Rolfero
Jul 21 2009, 11:50 AM
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
Jul 21 2009, 12:19 PM
ooooh

thank you very much...and what would i do so that when you press the pause or stop button it does so?
Rolfero
Jul 21 2009, 12:59 PM
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
Jul 21 2009, 01:08 PM
ok...thanks again
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.