|
Public Member Functions |
| | PVXMLChannel (unsigned frameDelay, PINDEX frameSize) |
| | ~PVXMLChannel () |
| virtual BOOL | Open (PVXMLChannelInterface *_vxml) |
| virtual BOOL | IsOpen () const |
| virtual BOOL | Close () |
| virtual BOOL | Read (void *buffer, PINDEX amount) |
| virtual BOOL | Write (const void *buf, PINDEX len) |
| virtual PWAVFile * | CreateWAVFile (const PFilePath &fn, BOOL recording=FALSE) |
| const PString & | GetMediaFormat () const |
| BOOL | IsMediaPCM () const |
| virtual PString | AdjustWavFilename (const PString &fn) |
| virtual BOOL | WriteFrame (const void *buf, PINDEX len)=0 |
| virtual BOOL | IsSilenceFrame (const void *buf, PINDEX len) const =0 |
| virtual BOOL | QueueRecordable (PVXMLRecordable *newItem) |
| BOOL | StartRecording (const PFilePath &fn, unsigned finalSilence=3000, unsigned maxDuration=30000) |
| BOOL | EndRecording () |
| BOOL | IsRecording () const |
| virtual BOOL | ReadFrame (void *buffer, PINDEX amount)=0 |
| virtual PINDEX | CreateSilenceFrame (void *buffer, PINDEX amount)=0 |
| virtual void | GetBeepData (PBYTEArray &, unsigned) |
| virtual BOOL | QueueResource (const PURL &url, PINDEX repeat=1, PINDEX delay=0) |
| virtual BOOL | QueuePlayable (const PString &type, const PString &str, PINDEX repeat=1, PINDEX delay=0, BOOL autoDelete=FALSE) |
| virtual BOOL | QueuePlayable (PVXMLPlayable *newItem) |
| virtual BOOL | QueueData (const PBYTEArray &data, PINDEX repeat=1, PINDEX delay=0) |
| virtual BOOL | QueueFile (const PString &fn, PINDEX repeat=1, PINDEX delay=0, BOOL autoDelete=FALSE) |
| virtual BOOL | QueueCommand (const PString &cmd, PINDEX repeat=1, PINDEX delay=0) |
| virtual void | FlushQueue () |
| virtual BOOL | IsPlaying () const |
| void | SetPause (BOOL _pause) |
| void | SetName (const PString &name) |
| unsigned | GetSampleFrequency () const |
Protected Attributes |
| PVXMLChannelInterface * | vxmlInterface |
| unsigned | sampleFrequency |
| PString | mediaFormat |
| PString | wavFilePrefix |
| PMutex | channelWriteMutex |
| PMutex | channelReadMutex |
| BOOL | closed |
| BOOL | recording |
| PVXMLRecordable * | recordable |
| unsigned | finalSilence |
| unsigned | silenceRun |
| BOOL | playing |
| PMutex | queueMutex |
| PVXMLQueue | playQueue |
| PVXMLPlayable * | currentPlayItem |
| BOOL | paused |
| int | silentCount |
| int | totalData |
| PTimer | delayTimer |
| PString | channelName |