AmConferenceChannel Class Reference

one channel of a conference More...

#include <AmConferenceChannel.h>

Inheritance diagram for AmConferenceChannel:

AmAudio

Public Member Functions

 AmConferenceChannel (AmConferenceStatus *status, int channel_id, bool own_channel)
string getConfID ()

Protected Member Functions

int read (unsigned int user_ts, unsigned int size)
int write (unsigned int user_ts, unsigned int size)
int get (unsigned int user_ts, unsigned char *buffer, unsigned int nb_samples)
int put (unsigned int user_ts, unsigned char *buffer, unsigned int size)

Detailed Description

one channel of a conference

A ConferenceChannel is one channel, i.e. to/from one participant, in a conference.


Member Function Documentation

int AmConferenceChannel::read ( unsigned int  user_ts,
unsigned int  size 
) [inline, protected, virtual]

Gets 'size' bytes directly from stream (Read,Pull).

Implements AmAudio.

int AmConferenceChannel::write ( unsigned int  user_ts,
unsigned int  size 
) [inline, protected, virtual]

Puts 'size' bytes directly from stream (Write,Push).

Implements AmAudio.

int AmConferenceChannel::get ( unsigned int  user_ts,
unsigned char *  buffer,
unsigned int  nb_samples 
) [protected, virtual]

Get some samples from input stream.

Warning:
For packet based payloads / file formats, use:
           nb_sample = input buffer size / sample size of the reference format
 
whereby the format with/from which the codec works is the reference one.
Returns:
# bytes read, else -1 if error (0 is OK)

Reimplemented from AmAudio.

int AmConferenceChannel::put ( unsigned int  user_ts,
unsigned char *  buffer,
unsigned int  size 
) [protected, virtual]

Put some samples to the output stream.

Warning:
For packet based payloads / file formats, use:
           nb_sample = input buffer size / sample size of the reference format
 
whereby the format with/from which the codec works is the reference one.
Returns:
# bytes written, else -1 if error (0 is OK)

Reimplemented from AmAudio.


The documentation for this class was generated from the following files:
Generated on Fri May 16 12:02:07 2008 for SEMS by  doxygen 1.5.1
Home |  Recent changes |  Search |  Glossary |  Sitemap |  Login