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
◆ addNotifyAudioChange()
Adds target to be notified about audio changes.
Reimplemented in CodecNOP, EncodedAudioOutput, EncodedAudioStream, AACDecoderFDK, DecoderBasic, CodecChain, MP3DecoderHelix, MP3DecoderMAD, OggContainerDecoder, Pipeline, and Pipeline::ModifyingStreamAdapter.
◆ audioInfo()
|
inlineoverridevirtualinherited |
◆ audioInfoOut()
provides the actual output AudioInfo: this is usually the same as audioInfo() unless we use a transforming stream
Reimplemented in PureDataStream, PWMAudioOutput, ChannelFormatConverterStreamT< T >, ChannelFormatConverterStream, NumberFormatConverterStreamT< TFrom, TTo >, NumberFormatConverterStream, FormatConverterStream, Pipeline, ResampleStream, and ResampleStreamT< TInterpolator >.
◆ 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.
◆ begin() [1/2]
◆ begin() [2/2]
◆ end()
◆ flush()
Reimplemented from Print.
◆ isDeletable()
virtual bool isDeletable |
( |
| ) |
|
|
inlinevirtualinherited |
◆ operator bool()
Returns true if the server has been started.
Reimplemented from AudioOutput.
◆ setAudioInfo()
|
inlineoverridevirtualinherited |
◆ write()
size_t write |
( |
const uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
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:
- src/AudioTools/AudioLibs/RTSP.h