-
I have a .wav file, which I can play with the help of the library. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When you read from the decoder, if the number of frames you get back is less than what you requested it means you've reached the end. Use that to determine whether or not you've reached the end. Note, however, that you cannot stop or uninitialize a device from inside the data callback which means you'll need to set a variable or something and do the uninitialization on a different thread. |
Beta Was this translation helpful? Give feedback.
When you read from the decoder, if the number of frames you get back is less than what you requested it means you've reached the end. Use that to determine whether or not you've reached the end. Note, however, that you cannot stop or uninitialize a device from inside the data callback which means you'll need to set a variable or something and do the uninitialization on a different thread.