ma_device_playback_time #625
-
In the previous version I was using I called ma_device_playback_time to get the current playback time of the video. This has either been removed or it was something I added (which seems unlikely). Is there a recommended way to obtain that now so I can update my play bar? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Ah, I think I have found it, so I think ma_data_source_get_cursor_in_seconds is the replacement? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
OK, then it must have been something I added a long time ago and forgot about (the trouble with getting old). Thanks as always for your great support and work on the library. |
Beta Was this translation helpful? Give feedback.
ma_device_playback_time()
was never a thing in miniaudio.ma_data_source_get_cursor_*()
is used for getting the playback position of a specific data source (ma_decoder
,ma_audio_buffer
, etc.). That will work for you if you only need the local running time of a specific data source. If you need a global timer, you'll need to keep track of that yourself.