Add padding to last chunk instead of ignoring it #49
Labels
feature
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
Problem
If the duration of the last chunk is lower than the desired duration, the chunk is ignored.
Idea
Pad the last (incomplete) chunk with zeros. This mainly affects
FileAudioSource
andAudioFileReader
. It is important thatnum_chunks()
(that estimates the number of chunks without actually doing the chunking) also counts this incomplete chunk.The text was updated successfully, but these errors were encountered: