UniMRCP  1.3.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mpf_audio_file_descriptor.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_audio_file_descriptor.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
17  */
18 
19 #ifndef MPF_AUDIO_FILE_DESCRIPTOR_H
20 #define MPF_AUDIO_FILE_DESCRIPTOR_H
21 
22 /**
23  * @file mpf_audio_file_descriptor.h
24  * @brief MPF Audio File Descriptor
25  */
26 
27 #include <stdio.h>
28 #include "mpf_stream_descriptor.h"
29 
31 
32 /** FILE_READER defined as a stream source */
33 #define FILE_READER STREAM_DIRECTION_RECEIVE
34 /** FILE_WRITER defined as a stream sink */
35 #define FILE_WRITER STREAM_DIRECTION_SEND
36 
37 /** Audio file descriptor declaration */
39 
40 /** Audio file descriptor */
42  /** Indicate descriptor type (reader and/or writer) */
44  /** Codec descriptor to use for audio file read/write */
46  /** File handle to read audio stream */
47  FILE *read_handle;
48  /** File handle to write audio stream */
49  FILE *write_handle;
50  /** Max size of file */
51  apr_size_t max_write_size;
52 };
53 
55 
56 #endif /* MPF_AUDIO_FILE_DESCRIPTOR_H */