2
The mediastreamer library aims at providing modular media processing and I/O
3
for linphone, but also for any telephony application.
4
Copyright (C) 2001 Simon MORLAT simon.morlat@linphone.org
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27
#include "msrtprecv.h"
28
#include "msrtpsend.h"
29
#include "msosswrite.h"
30
#include "msossread.h"
35
#include "msspeexdec.h"
36
#include "msringplayer.h"
42
RtpSession *send_session;
43
RtpSession *recv_session;
53
typedef struct _AudioStream AudioStream;
62
typedef struct _RingStream RingStream;
64
/* start a thread that does sampling->encoding->rtp_sending|rtp_receiving->decoding->playing */
65
AudioStream *audio_stream_start (RtpProfile * prof, int locport, char *remip4,
66
int remport, int profile, int jitt_comp);
68
AudioStream *audio_stream_start_with_sndcard(RtpProfile * prof, int locport, char *remip4,
69
int remport, int profile, int jitt_comp, SndCard *sndcard);
71
AudioStream *audio_stream_start_with_files (RtpProfile * prof, int locport,
72
char *remip4, int remport,
73
int profile, int jitt_comp,
74
gchar * infile, gchar * outfile, SndCard *sndcard);
77
/* stop the above process*/
78
void audio_stream_stop (AudioStream * stream);
80
RingStream *ring_start (gchar * file, gint interval, SndCard *sndcard);
81
RingStream *ring_start_with_cb(gchar * file, gint interval, SndCard *sndcard, MSFilterNotifyFunc func,gpointer user_data);
82
void ring_stop (RingStream * stream);
84
/* returns the latency in samples if the audio device with id dev_id is openable in full duplex mode, else 0 */
85
gint test_audio_dev (int dev_id);
88
gint send_dtmf (AudioStream * stream, gchar dtmf);
97
RtpSession *send_session;
98
RtpSession *recv_session;
100
MSFilter *dispatcher;
109
typedef struct _VideoStream VideoStream;
111
VideoStream *video_stream_start_full (int locport, char *remip4, int remport,
112
int profile, int jitt_comp,
113
gchar * infile, gchar * outfile);
115
void video_stream_stop (VideoStream * stream);