How to get the length of an ogg sound with libvorbis/libogg and dynamic decoding/streaming? #839
-
Greetings, I am sorry if this was already asked before (I looked but didn't find), but it seems as though trying to get the length for an ogg sound loaded with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The libvorbis decoding backend does not have reliable retrieval of the length of a file. You can try modifying Regarding the error when using streaming, do you mean |
Beta Was this translation helpful? Give feedback.
The libvorbis decoding backend does not have reliable retrieval of the length of a file. You can try modifying
ma_libvorbis_get_length_in_pcm_frames()
in extras/miniaudio_libvorbis.h to call ov_pcm_total, but in my experience it gave inaccurate results.Regarding the error when using streaming, do you mean
ma_sound_get_length_in_pcm_frames()
is returning an error?