[SOLVED] AudioNode has 3 states of play and pause and stops a sound, how it works in pause and resume of a game?

AudioNode has 3 states of play and pause and stops a sound, how it works in pause and resume of a game?
I mean when a sound is playing then paused and then plays again, it will continue from the last position or start from the start of the sound?

Have you tried it out to see what happens?

1 Like

I’m no rocket scientist but by definition of the word pause it stops at the moment in time.

1 Like

at the time of the asking question, no.
but now I tried and it works correctly…

but my question was about resuming, I read that (AudioNode) class and its enum states but I cant find anything about resuming…

Is play did not resume after pause then pause and stop would be the same thing.

The very act of pausing indicates what will happen when you play again.

2 Likes

how can I find a sound is playing? because when I pause the game then I paused the list of AudioNodes used in-game.
then the play method will play all sound even if the didn’t start. I want to prevent it, I’m looking for the resume method in audio node class.

1 Like

This?
https://javadoc.jmonkeyengine.org/v3.3.2-stable/com/jme3/audio/AudioNode.html#getStatus--

2 Likes

thank you so much, may God bless and guide you.

you would also like to see:

if something in wiki is wrong, might need fix it.

2 Likes