Skip to content

Start a playback from a specific point in millisecond ? #685

Answered by mackron
Duddy67 asked this question in Q&A
Discussion options

You must be logged in to vote

You can just rearrange it:

seekPointInMilliseconds = seekpointInFrames * 1000 / ma_engine_get_sample_rate(&engine)

Make sure you multiply the seek point by 1000 first if you're doing everything using integer math.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@cdigit
Comment options

@mackron
Comment options

Answer selected by Duddy67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #684 on June 05, 2023 05:52.