rodio icon indicating copy to clipboard operation
rodio copied to clipboard

How to get length of audio file before reading each sample?

Open Boscop opened this issue 4 years ago • 2 comments

Is it possible to get the length of the audio file before reading each sample?

Boscop avatar Jun 17 '20 21:06 Boscop

source.size_hint().0 should work.

HalfVoxel avatar Oct 03 '20 11:10 HalfVoxel

size_hint is not required to be accurate.

est31 avatar Oct 03 '20 19:10 est31