Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Music player, pause/resume and other problems?

Author
Message
Confused1612
14
Years of Service
User Offline
Joined: 9th Feb 2012
Location:
Posted: 1st Mar 2012 07:14
We were given a basic program that just played the song when the program started and nothing else. I added a Play/Restart button which works if the song is currently playing but after the song ends it doesn't. I set it up to Pause/Resume when you press the Space Key. It pauses fine but will not resume. I also added Mute, Un-Mute, Volume Up, Volume Down, and instructions which all work fine.

If you know why the Play/Restart or Pause/Resume isn't working the way I want it to I would greatly appreciate it. My code is here:
Confused1612
14
Years of Service
User Offline
Joined: 9th Feb 2012
Location:
Posted: 2nd Mar 2012 14:19
Can anyone take a look at it? Although, from talking to some of my classmates maybe it ISN'T pausing fine, because others report that it is actually crashing and thats why the resume doesn't work. Anyway, if anyone can offer a suggestion on how to fix either the Pause/Resume problem or the problem with the Restart not working after the song is over I would greatly appreciate it. Also, I have attached the song so that you can actually run the program and see what it does without having to use your own music.
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 2nd Mar 2012 19:05 Edited at: 2nd Mar 2012 19:08
you're right, this will be corrected is in the next update.

http://forum.thegamecreators.com/?m=forum_view&t=193289&b=1

Login to post a reply

Server time is: 2026-07-09 00:08:15
Your offset time is: 2026-07-09 00:08:15