Basic I2S API - for the ESP8266 Only 16 bits are supported !
More...
#include <I2SDriverESP8266.h>
|
| size_t | readBytes (void *dest, size_t size_bytes) |
| | reads the data from the I2S interface
|
| |
| size_t | writeBytes (const void *src, size_t size_bytes) |
| | writes the data to the I2S interface
|
| |
| size_t | writeExt (const void *src, size_t size_bytes) |
| | writes the data by making shure that we send 2 channels 16 bit data
|
| |
Basic I2S API - for the ESP8266 Only 16 bits are supported !
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ available()
we assume the data is already available in the buffer
Implements I2SDriverBase.
◆ availableForWrite()
| int availableForWrite |
( |
| ) |
|
|
inlinevirtual |
We limit the write size to the buffer size.
Implements I2SDriverBase.
◆ begin() [1/3]
◆ begin() [2/3]
◆ begin() [3/3]
starts the DAC with the default config
◆ config()
◆ defaultConfig()
◆ end()
◆ flush()
Discards any audio already queued in the driver's own output buffer (e.g. the I2S DMA buffer) but not yet physically played - useful when switching to unrelated audio content (e.g. AudioPlayer moving to the next track) to stop stale samples from continuing to play out during the switch. Default no-op, since not every backend can support this; override where the underlying driver allows it.
Reimplemented in I2SDriverESP32, and I2SDriverESP32V1.
◆ readBytes()
| size_t readBytes |
( |
void * |
dest, |
|
|
size_t |
size_bytes |
|
) |
| |
|
inlineprotectedvirtual |
◆ setAudioInfo()
Potentially updates the sample rate (if supported)
Implements I2SDriverBase.
◆ writeBytes()
| size_t writeBytes |
( |
const void * |
src, |
|
|
size_t |
size_bytes |
|
) |
| |
|
inlineprotectedvirtual |
◆ writeExt()
| size_t writeExt |
( |
const void * |
src, |
|
|
size_t |
size_bytes |
|
) |
| |
|
inlineprotected |
writes the data by making shure that we send 2 channels 16 bit data
◆ I2SStream
◆ cfg
The documentation for this class was generated from the following file: