Batch audio loading
This merge request resolves this issue: #157 (closed)
To achieve this I have cleaned up and refactores the classes in the audio_loader module somewhat. The changes are almost but not fully backward compatible.
In particular, these are the non-backward compatible changes:
-
The
__next__method of the AudioLoader classes now issues aStopIterationwhen all segments have been loaded once, whereas before it would just keep going. This behaviour can be controlled with the newstopargument. -
The AudioLoader classes now all have the argument
batch_sizewhereas previously this argument was only available for AudioFrameStepper and had a different meaning. -
There is a new AudioFrameEfficientLoader which essentially does what AudioFrameStepper(batch_size > 1) used to do.
@bpadovese , given the non-backward compatibility, should we save these changes for v3.0? On the other hand, I think very few users if any will notice any of this, so perhaps we can just add it to v2.5?