|
arduino-audio-tools
|
Linear PCM Format for RTSP Streaming. More...
#include <RTSPFormat.h>
Public Member Functions | |
| RTSPFormatPCM () | |
| RTSPFormatPCM (AudioInfo info, int fragmentSize=640) | |
| virtual AudioInfo | audioInfo () |
| void | begin (AudioInfo info) |
| int | convert (void *data, int samples) |
| Convert to network format. | |
| AudioInfo | defaultConfig () override |
| const char * | format (char *buffer, int len) override |
| Provide format 10 or 11. | |
| virtual int | fragmentSize () |
| Fragment (=write) size in bytes. | |
| AudioInfo | info () |
| virtual const char * | name () |
| virtual int | readHeader (uint8_t *data) |
| Optional header: e.g. rfc2250. | |
| int | rtpPayloadType () override |
| default dynamic | |
| void | setFragmentSize (int fragmentSize) |
| Defines the fragment size in bytes. | |
| void | setName (const char *name) |
| Defines the name of the stream. | |
| void | setTimerPeriodUs (int period) |
| Defines the timer period in microseconds. | |
| virtual void | setUseRfc2250Header (bool) |
| Optional: Configure RFC2250 header usage (default: no-op) | |
| virtual int | timerPeriodUs () |
| Timer period in microseconds. | |
| virtual int | timestampIncrement () |
| Fragment size in samples. | |
| virtual bool | useRfc2250Header () const |
Protected Member Functions | |
| int | bytesPerSample () |
| int | channels () |
| int | getTimerPeriod (int fragmentSize) |
| Get the timer period for streaming. | |
| int | sampleRate () |
Protected Attributes | |
| AudioInfo | cfg {16000, 1, 16} |
| int | fragment_size = 640 |
| const char * | name_str = "RTSPAudioTools" |
| const char * | STD_URL_PRE_SUFFIX = "trackID" |
| int | timer_period_us = 10000 |
Linear PCM Format for RTSP Streaming.
RTSPFormatPCM implements the RTSPFormat interface for linear PCM audio, the most common uncompressed audio format. This class:
|
inline |
|
inline |
Reimplemented in RTSPFormatMP3, and RTSPFormatADPCM< AudioEncoder >.
Reimplemented from RTSPFormat.
|
inlineprotected |
|
inlineprotected |
|
inlineoverridevirtual |
Implements RTSPFormat.
Get the timer period for streaming.
|
inline |
|
inlineoverridevirtual |
default dynamic
Reimplemented from RTSPFormat.
|
inlineprotected |
Optional: Configure RFC2250 header usage (default: no-op)
Reimplemented in RTSPFormatMP3.
Timer period in microseconds.
Reimplemented in RTSPFormatADPCM< AudioEncoder >, and RTSPFormatMP3.
Fragment size in samples.
Reimplemented in RTSPFormatMP3.
Reimplemented in RTSPFormatMP3.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |