Arduino live555
All Classes Functions Pages
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
SimplePCMStreamer Class Reference

A simple API for a PCM Streamer. More...

#include <RTSPSimpleStreamer.hh>

Inheritance diagram for SimplePCMStreamer:
RTSPSimpleStreamer SimpleWAVStreamer

Public Member Functions

 SimplePCMStreamer (AbstractFile &driver)
 
 SimplePCMStreamer (AbstractFile *driver)
 
bool play ()
 
void setChannels (unsigned int channels)
 
void setBitsPerSample (unsigned char bps)
 
void setAudioFormat (unsigned char fmt)
 
void setAudioRate (int rate)
 
virtual RTSPSimpleStreamerConfig defaultConfig ()
 
virtual bool begin (RTSPSimpleStreamerConfig config)
 
virtual void doEventLoop ()
 calls the scheduler's event loop - does not return!
 
virtual void singleStep (unsigned delay=0)
 execute singleStep for ARDUINO loop()
 
virtual const char * hostName ()
 

Protected Member Functions

bool setupFileFormat ()
 This is file specific - so we do nothing here.
 
virtual AudioInputDevicecreateSource ()
 
AudioInputDevicepcmSource ()
 
virtual bool setupFile ()
 Setup a single file.
 
virtual bool setupServer ()
 
virtual void startWifi ()
 Starts the Wifi if necessary and possible.
 
virtual void startmDNS ()
 Stars the mDNS server.
 

Static Protected Member Functions

static void afterPlaying (void *ptr)
 static callback method
 

Protected Attributes

unsigned char audioFormat = WA_PCM
 
unsigned char numChannels = 2
 
unsigned char bitsPerSample = 16
 
unsigned samplingFrequency = 44100
 
RTSPSimpleStreamerConfig cfg
 
UsageEnvironmentenv = nullptr
 
RTPSinksink = nullptr
 
RTCPInstancertcpInstance = nullptr
 
GroupsockrtpGroupsock = nullptr
 
GroupsockrtcpGroupsock = nullptr
 
RTSPServerrtspServer = nullptr
 
MediaSourcesource = nullptr
 
unsigned char CNAME [MAX_CNAME_LEN+1] = {0}
 

Detailed Description

A simple API for a PCM Streamer.

Author
Phil Schatzmann

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