NEED HELP:sound player troubles

the19thbearthe19thbear Member Posts: 102
edited November -1 in Working with GS (Mac)
Hi everyone!
Have a basic audio player:
play/stop/pause with a button for each function
the buttons integer attribute control to an actor called "sound player".
examples: pressing stop will set stop/play/pause attribute value to "0"
pressing play will set stop/play/pause attribute value to "1"
pressing pause will set stop/play/pause attribute value to "2"

In "sound player": if stop/play/pause attribute=0 =stop music. If 1=play music. if 2= pause music.
i also have a"pause off/on" attribute.
If pause button is pressed, the "Pause off/on" attribute will go to "1".

So in the sound player:
if pause off/on attribute=1 AND stop/play/pause=1 =resume play from where i pressed pause (timeline wise, in the music)

that way if i press pause in the middle of the music, pressing play will resume the music in the middle of the song, not from the beginning.

The problem is this:
if i press STOP and then Pause and then PLAY (yeah.. why would you! but you could easily do it by mistake..) nothing happens. - the stop function has reset the pause function so the pause function has no where to start from and the play function is trying to resume from.. nothing.
the result: NOTHING HAPPENS:)

the desired result: press stop, pause and then play: play from the beginning.

Maybe this is WAY complicated to understand in plain text - but is there an easy way to make a stop/play/pause(resume) function in GS?

If someone has the spare time, could i send you my project, and you could have a look at it?
or just let me know if there is an easier way:)

thanks alot people! i'm getting gray hairs here!:)

Comments

  • the19thbearthe19thbear Member Posts: 102
    Or if you have a simple way of resuming from paused music, i would be VERY greatful:)
Sign In or Register to comment.