Replies: 1 comment
-
You're out of luck there. The rule used by miniaudio is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using
ma_decoder_read_pcm_frames
within a callback of my audio system.Is it possible that the function returns
framesRead == framesToRead
even when hitting the end of stream?I am using miniaudio to feed the frames to XAudio2, which expects the last audio buffer of a stream to have the flag
XAUDIO2_END_OF_STREAM
.When I call
ma_decoder_read_pcm_frames
again after such a circumstance, It will just returnframesRead == 0
and returnMA_AT_END
, but in that case, I can't set the flag for XAudio2, because I can't submit a buffer of length zero.Am I misunderstanding the usage of this function here?
Beta Was this translation helpful? Give feedback.
All reactions