UniMRCP
1.3.0
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
libs
mpf
include
mpf_buffer.h
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2014 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
* $Id: mpf_buffer.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
17
*/
18
19
#ifndef MPF_BUFFER_H
20
#define MPF_BUFFER_H
21
22
/**
23
* @file mpf_buffer.h
24
* @brief Buffer of Media Chunks
25
*/
26
27
#include "
mpf_frame.h
"
28
29
APT_BEGIN_EXTERN_C
30
31
/** Opaque media buffer declaration */
32
typedef
struct
mpf_buffer_t
mpf_buffer_t
;
33
34
35
/** Create buffer */
36
mpf_buffer_t
*
mpf_buffer_create
(apr_pool_t *pool);
37
38
/** Destroy buffer */
39
void
mpf_buffer_destroy
(
mpf_buffer_t
*buffer);
40
41
/** Restart buffer */
42
apt_bool_t
mpf_buffer_restart
(
mpf_buffer_t
*buffer);
43
44
/** Write audio chunk to buffer */
45
apt_bool_t
mpf_buffer_audio_write
(
mpf_buffer_t
*buffer,
void
*data, apr_size_t size);
46
47
/** Write event to buffer */
48
apt_bool_t
mpf_buffer_event_write
(
mpf_buffer_t
*buffer,
mpf_frame_type_e
event_type);
49
50
/** Read media frame from buffer */
51
apt_bool_t
mpf_buffer_frame_read
(
mpf_buffer_t
*buffer,
mpf_frame_t
*media_frame);
52
53
/** Get size of buffer **/
54
apr_size_t
mpf_buffer_get_size
(
const
mpf_buffer_t
*buffer);
55
56
APT_END_EXTERN_C
57
58
#endif
/* MPF_BUFFER_H */
Generated on Mon Feb 2 2015 19:41:38 for UniMRCP by
1.8.3.1