karip / ausnd Goto Github PK
View Code? Open in Web Editor NEWAU Audio Format Reader and Writer
License: Apache License 2.0
AU Audio Format Reader and Writer
License: Apache License 2.0
The current implementation requires std::io::{Read, Write, Seek, SeekFrom, Error, ErrorKind}
, but they are not available in no_std.
When no_std gets support for them, this issue can be fixed.
Currently, creating AuReader
with AuReader::new()
requires the inner reader to implement std::io::Read
and std::io::Seek
.AuReader
needs to be changed to support inner readers implementing std::io::Read
only. However, it should also keep the current functionality for inner readers implementing std::io::Seek
.
Therefore, this change seems to require some kind of specialization. The AuReader::new()
function should behave slightly differently depending on the inner reader:
std::io::Read
only, then initial_stream_len
should be set to None
.std::io::Read
and std::io::Seek
, then initial_stream_len
should be set to Some(stream_length)
.Rust doesn't seem to support specialization at the moment, so it isn't possible to have two different behaviors for new()
.
There's private AuReader::new_read()
as an example how the new()
function would look like for inner readers implementing only std::io::Read
, but it can't be used, because calling it for inner readers implementing std::io::Seek
would give wrong results (initial_stream_len
would be set to None
instead of Some(..)
).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.