How to set starting frame when the Audio is no playing? #476
ahmadharis4u
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I hooked up my player to a slider and I am trying to set play position based on the slider.
When the audio is playing, I have no problem in setting the seek position using
ma_sound_seek_to_pcm_frameHowever, I cannot find any function which can set the starting frame number for a stopped sound so, it starts playing from that frame.
The above function has no effect on stopped sounds.
-- Update--
Looks like it does affect the stopped sounds, but only once they are resumed.
Till then the
ma_sound_get_cursor_in_pcm_framesreturns with the old value.So my slider jumps to the set position once resumed.
Beta Was this translation helpful? Give feedback.
All reactions