12024
|
1 /*
|
|
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
|
|
5
|
|
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.
|
|
10
|
|
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.
|
|
15
|
|
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
|
|
19 */
|
|
20
|
|
21
|
|
22
|
|
23 #ifndef MS_H
|
|
24 #define MS_H
|
|
25 #include "msfilter.h"
|
|
26 #include "mssync.h"
|
|
27
|
|
28
|
|
29 void ms_init();
|
|
30
|
|
31 /* compile graphs attached to a sync source*/
|
|
32 int ms_compile(MSSync *source);
|
|
33
|
|
34
|
|
35 /* stop the processing chain attached to a sync source.*/
|
|
36 void ms_thread_stop(MSSync *sync);
|
|
37
|
|
38
|
|
39 /**
|
|
40 * function_name:ms_thread_run
|
|
41 * @sync: The synchronization source for all the set of graphs to run.
|
|
42 *
|
|
43 * Execute the processing chain attached to a sync source. This function loops indefinitely.
|
|
44 * The media streamer programmer can choose to execute this function directly, or to call ms_start(),
|
|
45 * that will start a thread for the synchronisation source.
|
|
46 *
|
|
47 * Returns: no return value.
|
|
48 */
|
|
49 void *ms_thread_run(void *sync);
|
|
50
|
|
51
|
|
52 /**
|
|
53 * function_name:ms_start
|
|
54 * @sync: A synchronisation source to be started.
|
|
55 *
|
|
56 * Starts a thread that will shedule all processing chains attached to the synchronisation source @sync.
|
|
57 *
|
|
58 * Returns: no return value.
|
|
59 */
|
|
60 void ms_start(MSSync *sync);
|
|
61
|
|
62
|
|
63 /**
|
|
64 * function_name:ms_stop
|
|
65 * @sync: A synchronisation source to be stopped.
|
|
66 *
|
|
67 * Stop the thread that was sheduling the processing chains attached to the synchronisation source @sync.
|
|
68 * The processing chains are kept unchanged, no object is freed. The synchronisation source can be restarted using ms_start().
|
|
69 *
|
|
70 * Returns: no return value.
|
|
71 */
|
|
72 void ms_stop(MSSync *sync);
|
|
73
|
|
74
|
|
75 gchar * ms_proc_get_param(gchar *parameter);
|
|
76 gint ms_proc_get_type();
|
|
77 gint ms_proc_get_speed();
|
|
78
|
|
79
|
|
80
|
|
81 #endif
|