We can write PCM data to the RTSPOutput. This is encoded by the indicated encoder (e.g. SBCEncoder) and can be consumed by a RTSPServer. You have to make sure that the codec supports the provided audio format: e.g. GSM support only 8000 samples per second with one channel. Depends on the https://github.com/pschatzmann/Micro-RTSP-Audio/ library.
More...
#include <RTSP.h>
We can write PCM data to the RTSPOutput. This is encoded by the indicated encoder (e.g. SBCEncoder) and can be consumed by a RTSPServer. You have to make sure that the codec supports the provided audio format: e.g. GSM support only 8000 samples per second with one channel. Depends on the https://github.com/pschatzmann/Micro-RTSP-Audio/ library.
- Author
- Phil Schatzmann
◆ availableForWrite()
int availableForWrite |
( |
| ) |
|
|
inlinevirtual |
We do not know exactly how much we can write because the encoded audio is using less space. But providing the available buffer should cover the worst case.
Reimplemented from AudioOutput.
◆ write()
size_t write |
( |
const uint8_t * |
buffer, |
|
|
size_t |
byteCount |
|
) |
| |
|
inlineoverridevirtual |
We write PCM data which is encoded on the fly by the indicated encoder. This data is provided by the IAudioSource
Implements AudioOutput.
◆ writeSilence()
virtual void writeSilence |
( |
size_t |
len | ) |
|
|
inlinevirtualinherited |
Writes n 0 values (= silence)
- Parameters
-
The documentation for this class was generated from the following file: