At the moment, decoding an audio file into a Wave can only be done from either a filesystem path or a &'static [u8].
This makes it impossible to provide, for example, data downloaded from a socket (unless you first save it to disk).
Looking at the implementation, this seems unnecessarily restrictive, so I modified it to accept any AsRef<[u8]>. This makes it possible to pass a Vec<u8> for example.
At the moment, decoding an audio file into a
Wave
can only be done from either a filesystem path or a&'static [u8]
. This makes it impossible to provide, for example, data downloaded from a socket (unless you first save it to disk).Looking at the implementation, this seems unnecessarily restrictive, so I modified it to accept any
AsRef<[u8]>
. This makes it possible to pass aVec<u8>
for example.