faiface / beep

A little package that brings sound to any Go application. Suitable for playback and audio-processing.
MIT License
2.08k stars 151 forks source link

add file length to return values of decoding functions #119

Closed ilyapashuk closed 3 years ago

ilyapashuk commented 3 years ago

hello.

headers of all modern audio formats contains information about data size, file length.

please make it an other return value of decoding functions of all such formats or provide it by some other way, for example by adding an other method to streamers of such formats and creating appropriat interface.

ilyapashuk commented 3 years ago

found that such info is provided by streamSeeker interface by Len and Position methods.

thank you