Linear PCM Format for RTSP Streaming.
More...
#include <RTSPFormat.h>
Linear PCM Format for RTSP Streaming.
RTSPFormatPCM implements the RTSPFormat interface for linear PCM audio, the most common uncompressed audio format. This class:
- Generates SDP media descriptions for L16 (Linear 16-bit) RTP payload
- Handles byte order conversion from host to network format (big-endian)
- Calculates appropriate fragment sizes and timing for smooth streaming
- Supports arbitrary sample rates and channel configurations
- See also
- https://en.wikipedia.org/wiki/RTP_payload_formats
- Note
- Automatically handles endian conversion for network transmission
◆ RTSPFormatPCM() [1/2]
◆ RTSPFormatPCM() [2/2]
◆ audioInfo()
◆ begin()
◆ bytesPerSample()
◆ channels()
◆ convert()
| int convert |
( |
void * |
data, |
|
|
int |
samples |
|
) |
| |
|
inlinevirtual |
Convert to network format.
- Parameters
-
Reimplemented from RTSPFormat.
◆ defaultConfig()
◆ format()
| const char * format |
( |
char * |
buffer, |
|
|
int |
len |
|
) |
| |
|
inlineoverridevirtual |
Provide format 10 or 11.
- Parameters
-
- Returns
- const char*
Implements RTSPFormat.
◆ fragmentSize()
| virtual int fragmentSize |
( |
| ) |
|
|
inlinevirtualinherited |
Fragment (=write) size in bytes.
◆ getTimerPeriod()
| int getTimerPeriod |
( |
int |
fragmentSize | ) |
|
|
inlineprotected |
Get the timer period for streaming.
- Returns
- Timer period in microseconds between audio packets
◆ info()
◆ name()
| virtual const char * name |
( |
| ) |
|
|
inlinevirtualinherited |
◆ readHeader()
| virtual int readHeader |
( |
uint8_t * |
data | ) |
|
|
inlinevirtualinherited |
Optional header: e.g. rfc2250.
◆ rtpPayloadType()
◆ sampleRate()
◆ setFragmentSize()
| void setFragmentSize |
( |
int |
fragmentSize | ) |
|
|
inlineinherited |
Defines the fragment size in bytes.
◆ setName()
| void setName |
( |
const char * |
name | ) |
|
|
inlineinherited |
Defines the name of the stream.
◆ setTimerPeriodUs()
| void setTimerPeriodUs |
( |
int |
period | ) |
|
|
inlineinherited |
Defines the timer period in microseconds.
◆ setUseRfc2250Header()
| virtual void setUseRfc2250Header |
( |
bool |
| ) |
|
|
inlinevirtualinherited |
Optional: Configure RFC2250 header usage (default: no-op)
Reimplemented in RTSPFormatMP3.
◆ timerPeriodUs()
| virtual int timerPeriodUs |
( |
| ) |
|
|
inlinevirtualinherited |
◆ timestampIncrement()
| virtual int timestampIncrement |
( |
| ) |
|
|
inlinevirtualinherited |
◆ useRfc2250Header()
| virtual bool useRfc2250Header |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ cfg
◆ fragment_size
◆ name_str
| const char* name_str = "RTSPAudioTools" |
|
protectedinherited |
◆ STD_URL_PRE_SUFFIX
| const char* STD_URL_PRE_SUFFIX = "trackID" |
|
protectedinherited |
◆ timer_period_us
| int timer_period_us = 10000 |
|
protectedinherited |
The documentation for this class was generated from the following file: