arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StdioStream Class Reference

Direct binary Audio Output to stdout. On linux you can hear the audio e.g. with ./generator | aplay -f cd or reading data from stdin. More...

#include <StdioStream.h>

Inheritance diagram for StdioStream:
BaseStream Stream Print

Public Member Functions

int available () override
 
int availableForWrite () override
 
bool begin ()
 
AudioInfo defaultConfig ()
 
void end ()
 
virtual void flush () override
 
 operator bool ()
 
size_t readBytes (uint8_t *data, size_t len) override
 
size_t write (const uint8_t *data, size_t len) override
 
virtual size_t write (uint8_t ch) override
 

Protected Member Functions

void refillReadBuffer ()
 

Protected Attributes

int _timeout = 10
 
bool is_open = false
 
RingBuffer< uint8_t > tmp_in {0}
 
RingBuffer< uint8_t > tmp_out {0}
 

Detailed Description

Direct binary Audio Output to stdout. On linux you can hear the audio e.g. with ./generator | aplay -f cd or reading data from stdin.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: