简体   繁体   中英

How can I determine the length, in seconds, of a Vorbis stream?

How can I determine the length, in seconds, of the Ogg Vorbis stream with libvorbis and/or libvorbisfile?

As far as I can tell, there's nothing in the vorbis_info structure that tells me the length of the stream.

使用较低级别的API,可以使用ov_time_total进行此ov_time_total

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM