~ubuntu-branches/ubuntu/trusty/linphone/trusty

« back to all changes in this revision

Viewing changes to mediastreamer2/include/mediastreamer2/msconference.h

  • Committer: Package Import Robot
  • Author(s): Luk Claes
  • Date: 2013-09-11 19:08:43 UTC
  • mfrom: (1.1.19) (16.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20130911190843-fkydjxsdvy1fmx24
Tags: 3.6.1-2.1
* Non-maintainer upload.
* Apply Sebastian Ramacher's patch to fix FTBFS (Closes: #720668).

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
 * with the audiostream and is_remote=FALSE.<br>
148
148
 * For example:<br>
149
149
 * <PRE>
150
 
 * AudioStream *st=audio_stream_new(65000,FALSE);
 
150
 * AudioStream *st=audio_stream_new(65000,65001,FALSE);
151
151
 * audio_stream_start_full(st, conf->local_dummy_profile,
152
152
 *                              "127.0.0.1",
153
153
 *                              65000,
 
154
 *                              "127.0.0.1",
154
155
 *                              65001,
155
156
 *                              0,
156
157
 *                              40,
171
172
**/
172
173
MS2_PUBLIC void ms_audio_endpoint_release_from_stream(MSAudioEndpoint *obj);
173
174
 
 
175
/**
 
176
 * Creates an audio endpoint (or virtual participant) to record the conference into a wav file.
 
177
 * @param path Path to the wav file to record.
 
178
**/
 
179
MS2_PUBLIC MSAudioEndpoint * ms_audio_endpoint_new_recorder(void);
 
180
 
 
181
/**
 
182
 * Start audio recording.
 
183
 * The endpoint must have been created by ms_audio_endpoint_new_recorder().
 
184
 * @param ep the endpoint
 
185
 * @param path path for the wav file where to record samples.
 
186
 * @return 0 if successful, -1 if the path is invalid.
 
187
**/
 
188
MS2_PUBLIC int ms_audio_recorder_endpoint_start(MSAudioEndpoint *ep, const char *path);
 
189
 
 
190
/**
 
191
 * Stop audio recording.
 
192
 * The endpoint must have been created by ms_audio_endpoint_new_recorder().
 
193
 * @param ep the endpoint
 
194
 * @return 0 if successful, -1 if the record wasn't started.
 
195
**/
 
196
MS2_PUBLIC int ms_audio_recorder_endpoint_stop(MSAudioEndpoint *ep);
 
197
 
 
198
/**
 
199
 * Destroy an audio endpoint.
 
200
 * @note Endpoints created by ms_audio_endpoint_get_from_stream() must be released by ms_audio_endpoint_release_from_stream().
 
201
**/
 
202
MS2_PUBLIC void ms_audio_endpoint_destroy(MSAudioEndpoint *ep);
 
203
 
174
204
#ifdef __cplusplus
175
205
}
176
206
#endif