Open sandeepmistry opened 8 years ago
Was this done for performance reasons?
Yes. AudioStream on Teensy is an API for passing blocks of audio data, not individual samples. Typically the block size is 128 samples (256 bytes), which leads to very good performance and pretty good tolerance for software latency imposed by other libraries and common Arduino coding practices.
Hi @PaulStoffregen,
We're exploring adding an AudioStream API to Arduino that extends the current Stream type. The draft interface can be found here: api/Audio/AudioStream.h. We would appreciate any feedback you have on it.
We've taken a look at the Teensy Core's AudioStream type and noticed it doesn't have any public interfaces to access the raw sample data. Was this done for performance reasons?
Uses cases we are thinking about include: