Audio streaming API - Easily run audio streams from soundcard or wav files to RTP.
More...
|
MS2_PUBLIC bool_t | media_stream_secured (const MediaStream *stream) |
|
MS2_PUBLIC bool_t | media_stream_avpf_enabled (const MediaStream *stream) |
|
MS2_PUBLIC uint16_t | media_stream_get_avpf_rr_interval (const MediaStream *stream) |
|
MS2_PUBLIC RtpSession * | media_stream_get_rtp_session (const MediaStream *stream) |
|
MS2_PUBLIC int | media_stream_set_target_network_bitrate (MediaStream *stream, int target_bitrate) |
|
MS2_PUBLIC int | media_stream_get_target_network_bitrate (const MediaStream *stream) |
|
MS2_PUBLIC float | media_stream_get_up_bw (const MediaStream *stream) |
|
MS2_PUBLIC float | media_stream_get_down_bw (const MediaStream *stream) |
|
MS2_PUBLIC float | media_stream_get_rtcp_up_bw (const MediaStream *stream) |
|
MS2_PUBLIC float | media_stream_get_rtcp_down_bw (const MediaStream *stream) |
|
MS2_PUBLIC void | media_stream_reclaim_sessions (MediaStream *stream, MSMediaStreamSessions *sessions) |
|
MS2_PUBLIC bool_t | media_stream_alive (MediaStream *stream, int timeout_seconds) |
|
MS2_PUBLIC MSStreamState | media_stream_get_state (const MediaStream *stream) |
|
MS2_PUBLIC int | audio_stream_start_full (AudioStream *stream, RtpProfile *profile, const char *rem_rtp_ip, int rem_rtp_port, const char *rem_rtcp_ip, int rem_rtcp_port, int payload, int jitt_comp, const char *infile, const char *outfile, MSSndCard *playcard, MSSndCard *captcard, bool_t use_ec) |
|
MS2_PUBLIC AudioStream * | audio_stream_new (int loc_rtp_port, int loc_rtcp_port, bool_t ipv6) |
|
MS2_PUBLIC AudioStream * | audio_stream_new_with_sessions (const MSMediaStreamSessions *sessions) |
|
MS2_PUBLIC int | audio_stream_start_now (AudioStream *stream, RtpProfile *prof, const char *remip, int remport, int rem_rtcp_port, int payload_type, int jitt_comp, MSSndCard *playcard, MSSndCard *captcard, bool_t echo_cancel) |
|
MS2_PUBLIC void | audio_stream_iterate (AudioStream *stream) |
|
MS2_PUBLIC void | audio_stream_enable_echo_limiter (AudioStream *stream, EchoLimiterType type) |
|
MS2_PUBLIC void | audio_stream_enable_gain_control (AudioStream *stream, bool_t val) |
|
MS2_PUBLIC void | audio_stream_enable_automatic_gain_control (AudioStream *stream, bool_t val) |
|
MS2_PUBLIC void | audio_stream_set_echo_canceller_params (AudioStream *st, int tail_len_ms, int delay_ms, int framesize) |
|
MS2_PUBLIC void | audio_stream_mute_rtp (AudioStream *stream, bool_t val) |
|
MS2_PUBLIC void | audio_stream_enable_noise_gate (AudioStream *stream, bool_t val) |
|
MS2_PUBLIC void | audio_stream_enable_equalizer (AudioStream *stream, bool_t enabled) |
|
MS2_PUBLIC void | audio_stream_stop (AudioStream *stream) |
|
MS2_PUBLIC int | audio_stream_send_dtmf (AudioStream *stream, char dtmf) |
|
MS2_PUBLIC MSFilter * | audio_stream_open_remote_play (AudioStream *stream, const char *filename) |
|
bool_t | audio_stream_zrtp_enabled (const AudioStream *stream) |
|
Audio streaming API - Easily run audio streams from soundcard or wav files to RTP.
MS2_PUBLIC int audio_stream_start_full |
( |
AudioStream * |
stream, |
|
|
RtpProfile * |
profile, |
|
|
const char * |
rem_rtp_ip, |
|
|
int |
rem_rtp_port, |
|
|
const char * |
rem_rtcp_ip, |
|
|
int |
rem_rtcp_port, |
|
|
int |
payload, |
|
|
int |
jitt_comp, |
|
|
const char * |
infile, |
|
|
const char * |
outfile, |
|
|
MSSndCard * |
playcard, |
|
|
MSSndCard * |
captcard, |
|
|
bool_t |
use_ec |
|
) |
| |
Starts an audio stream from/to local wav files or soundcards.
This method starts the processing of the audio stream, that is playing from wav file or soundcard, voice processing, encoding, sending through RTP, receiving from RTP, decoding, voice processing and wav file recording or soundcard playback.
- Parameters
-
stream | an AudioStream previously created with audio_stream_new(). |
profile | a RtpProfile containing all PayloadType possible during the audio session. |
rem_rtp_ip | remote IP address where to send the encoded audio. |
rem_rtp_port | remote IP port where to send the encoded audio. |
rem_rtcp_ip | remote IP address for RTCP. |
rem_rtcp_port | remote port for RTCP. |
payload | payload type index to use for the sending stream. This index must point to a valid PayloadType in the RtpProfile. |
jitt_comp | Nominal jitter buffer size in milliseconds. |
infile | path to wav file to play out (can be NULL) |
outfile | path to wav file to record into (can be NULL) |
playcard | The soundcard to be used for playback (can be NULL) |
captcard | The soundcard to be used for catpure. (can be NULL) |
use_ec | whether echo cancellation is to be performed. |
- Returns
- 0 if sucessful, -1 otherwise.
MS2_PUBLIC int audio_stream_start_now |
( |
AudioStream * |
stream, |
|
|
RtpProfile * |
prof, |
|
|
const char * |
remip, |
|
|
int |
remport, |
|
|
int |
rem_rtcp_port, |
|
|
int |
payload_type, |
|
|
int |
jitt_comp, |
|
|
MSSndCard * |
playcard, |
|
|
MSSndCard * |
captcard, |
|
|
bool_t |
echo_cancel |
|
) |
| |
Starts an audio stream from local soundcards.
This method starts the processing of the audio stream, that is capture from soundcard, voice processing, encoding, sending through RTP, receiving from RTP, decoding, voice processing and soundcard playback.
- Parameters
-
stream | an AudioStream previously created with audio_stream_new(). |
prof | a RtpProfile containing all PayloadType possible during the audio session. |
remip | remote IP address where to send the encoded audio. |
remport | remote IP port where to send the encoded audio |
rem_rtcp_port | remote port for RTCP. |
payload_type | payload type index to use for the sending stream. This index must point to a valid PayloadType in the RtpProfile. |
jitt_comp | Nominal jitter buffer size in milliseconds. |
playcard | The soundcard to be used for playback |
captcard | The soundcard to be used for catpure. |
echo_cancel | whether echo cancellation is to be performed. |