You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// RegisterFromat registers audio format for Decode.funcRegisterFromat(namestring, magicstring, decodefunc(src io.Reader) (sampleRateint, lengthint, errerror))
// Decode decodes an audio stream and returns a decoded string in 32bit float little-endian format.// The format is detected by the magic bytes.funcDecode(src io.Reader) (stream io.Reader, formatstring, sampleRateint, lengthint, errerror)
Operating System
What feature would you like to be added?
I propose these APIs for
audio
:This is like
image.RegisterFormat
andsql.Register
.Why is this needed?
This enables to decode audio streams more easily. Users don't have to care which decoder is used.
The text was updated successfully, but these errors were encountered: