adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
Other
4.02k stars 1.19k forks source link

Enhancement request: Add support for resuming a wave file from a given point #8055

Open niccit opened 1 year ago

niccit commented 1 year ago

While building a simple eBook reader project, I realized if the eBook reader lost power, I would lose the position in the eBook.

I would like to be able to use tell(), to log how much has been played, and seek() to start at the last logged tell() point to continue the reading journey.

I posted this question in the forums and learned that audiocore.WaveFile doesn't support this.

It would be great if we could add support for beginning a wave file from a designated point.

Please let me know if there is any more information/detail I can provide regarding this request.

Thanks!

tannewt commented 1 year ago

@jepler any interest in doing this?