beetbox / audioread

cross-library (GStreamer + Core Audio + MAD + FFmpeg) audio decoding for Python
MIT License
481 stars 108 forks source link

Add common base class for all audio file types #127

Closed sampsyo closed 1 year ago

sampsyo commented 1 year ago

Following up on #125, this adds a simple (dummy) base class audioread.AudioFile from which all the various backends' audio file classes inherit. The class has no methods, so it's not very duck-typey, but we don't currently have any shared functionality to actually move there. We could revisit this some later time.

It would be great to get @bmcfee's eyes on this if it's not too much trouble!

bmcfee commented 1 year ago

It would be great to get @bmcfee's eyes on this if it's not too much trouble!

LGTM, thanks!

sampsyo commented 1 year ago

Thanks!!

sampsyo commented 1 year ago

Great; thanks!