#include <AmRtpAudio.h>
Inheritance diagram for AmRtpAudio:

Public Member Functions | |
| AmRtpAudio (AmSession *_s=0) | |
| bool | checkInterval (unsigned int ts) |
| bool | sendIntReached () |
| int | receive (unsigned int audio_buffer_ts) |
| void | setSendOnly (bool so) |
| 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) |
| void | init (const SdpPayload *sdp_payload) |
| void | setAdaptivePlayout (bool on) |
| int AmRtpAudio::get | ( | unsigned int | user_ts, | |
| unsigned char * | buffer, | |||
| unsigned int | nb_samples | |||
| ) | [virtual] |
Get some samples from input stream.
nb_sample = input buffer size / sample size of the reference formatwhereby the format with/from which the codec works is the reference one.
Reimplemented from AmAudio.
| void AmRtpAudio::init | ( | const SdpPayload * | sdp_payload | ) | [virtual] |
Enables RTP stream.
| sdp_payload | payload from the SDP message. |
It should be called only if the stream has been completly initialized,
and only once per session. Use resume() then.
Reimplemented from AmRtpStream.
| int AmRtpAudio::read | ( | unsigned int | user_ts, | |
| unsigned int | size | |||
| ) | [virtual] |
Gets 'size' bytes directly from stream (Read,Pull).
Implements AmAudio.
| int AmRtpAudio::write | ( | unsigned int | user_ts, | |
| unsigned int | size | |||
| ) | [virtual] |
Puts 'size' bytes directly from stream (Write,Push).
Implements AmAudio.
1.4.7