Minim: pause and continue a looping music file/complete stop?
in
Core Library Questions
•
2 years ago
Hello there!
I'm programming a game which includes a pausable looping BGM, so...
I was wondering if it was possible to continue a looping file at the point it was paused? After all, if I pause the music with bgm.pause(), then start it again with bgm.loop(), it will start at the beginning.
Alternate question: Using the method explained above, you'll hear a fractal of a second of the music file at the point it was paused, then it starts from the beginning. Is there a way to completely stop the file instead of pausing it? (with avoiding bgm.close()? as that requires a new call of the music file when "unpausing")
Ah yeah, if this wasn't clear, using the Minim class and commands... I couldn't find answers to my questions in the Minim code log.
I'm programming a game which includes a pausable looping BGM, so...
I was wondering if it was possible to continue a looping file at the point it was paused? After all, if I pause the music with bgm.pause(), then start it again with bgm.loop(), it will start at the beginning.
Alternate question: Using the method explained above, you'll hear a fractal of a second of the music file at the point it was paused, then it starts from the beginning. Is there a way to completely stop the file instead of pausing it? (with avoiding bgm.close()? as that requires a new call of the music file when "unpausing")
Ah yeah, if this wasn't clear, using the Minim class and commands... I couldn't find answers to my questions in the Minim code log.
1