UniMRCP  1.7.0
mpf_mixer.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2015 Arsen Chaloyan
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MPF_MIXER_H
18 #define MPF_MIXER_H
19 
20 /**
21  * @file mpf_mixer.h
22  * @brief MPF Stream Mixer (n-sources, 1-sink)
23  */
24 
25 #include "mpf_object.h"
26 
28 
29 /**
30  * Create audio stream mixer.
31  * @param source_arr the array of audio sources
32  * @param source_count the number of audio sources
33  * @param sink the audio sink
34  * @param codec_manager the codec manager
35  * @param name the informative name used for debugging
36  * @param pool the pool to allocate memory from
37  */
39  mpf_audio_stream_t **source_arr,
40  apr_size_t source_count,
41  mpf_audio_stream_t *sink,
42  const mpf_codec_manager_t *codec_manager,
43  const char *name,
44  apr_pool_t *pool);
45 
46 
48 
49 #endif /* MPF_MIXER_H */
Definition: mpf_stream.h:37
#define APT_END_EXTERN_C
Definition: apt.h:38
APT_BEGIN_EXTERN_C mpf_object_t * mpf_mixer_create(mpf_audio_stream_t **source_arr, apr_size_t source_count, mpf_audio_stream_t *sink, const mpf_codec_manager_t *codec_manager, const char *name, apr_pool_t *pool)
#define MPF_DECLARE(type)
Definition: mpf.h:40
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
Media Processing Object Base (bridge, multiplexor, mixer, ...)
Definition: mpf_object.h:33
struct mpf_codec_manager_t mpf_codec_manager_t
Definition: mpf_types.h:39