Micro RTSP Audio
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RTSPFormatPCM Class Reference

RTSPFormatPCM PCM information for RTSP see https://en.wikipedia.org/wiki/RTP_payload_formats. More...

#include <RTSPFormat.h>

Inheritance diagram for RTSPFormatPCM:
RTSPFormat

Public Member Functions

 RTSPFormatPCM (PCMInfo &info)
 
const char * format (char *buffer, int len) override
 Provide format 10 or 11. More...
 
int convert (void *data, int samples)
 Convert to network format. More...
 
PCMInfoinfo ()
 
int sampleRate ()
 
int channels ()
 
int bytesPerSample ()
 
void setFragmentSize (int fragmentSize)
 
int fragmentSize ()
 
void setTimerPeriod (int period)
 
int timerPeriod ()
 

Protected Member Functions

const char * payloadFormat (int sampleRate, int channels)
 
const int format (int channels)
 

Protected Attributes

PCMInfop_info = nullptr
 
char payload_fromat [30]
 
const char * STD_URL_PRE_SUFFIX = "trackID"
 
int fragment_size = 320
 
int timer_period = 20000
 

Detailed Description

RTSPFormatPCM PCM information for RTSP see https://en.wikipedia.org/wiki/RTP_payload_formats.

Member Function Documentation

◆ convert()

int RTSPFormatPCM::convert ( void *  data,
int  samples 
)
inlinevirtual

Convert to network format.

Parameters
data
byteSize

Reimplemented from RTSPFormat.

◆ format()

const char* RTSPFormatPCM::format ( char *  buffer,
int  len 
)
inlineoverridevirtual

Provide format 10 or 11.

Parameters
buffer
len
Returns
const char*

Implements RTSPFormat.


The documentation for this class was generated from the following file: