player.isActive() problem #710
-
Hello, when I use player.isActive(), an exception occurs. The song has already finished playing, but player.isActive() keeps returning true instead of false.
|
Beta Was this translation helpful? Give feedback.
Answered by
pschatzmann
Mar 24, 2023
Replies: 1 comment
-
isActive() returns true after you call begin() and false when you call end(). Using my latest commit you can check the number of bytes the copy() was processing... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pschatzmann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
isActive() returns true after you call begin() and false when you call end().
Alternatively you can halt/resume the processing by calling setActvie(bool) - or stop() and play() .
Using my latest commit you can check the number of bytes the copy() was processing...