-
Hi all, Thank you for enlightening me on this subject. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can derive the position in frames using the sound's sample rate. Use seekPointInFrames = (seekPointInMilliseconds * ma_engine_get_sample_rate(&engine)) / 1000; The sample rate is in seconds, hence the division by 1000. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your fast reply. |
Beta Was this translation helpful? Give feedback.
You can just rearrange it:
Make sure you multiply the seek point by 1000 first if you're doing everything using integer math.