UniMRCP  1.7.0
mpf_audio_file_descriptor.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_AUDIO_FILE_DESCRIPTOR_H
18 #define MPF_AUDIO_FILE_DESCRIPTOR_H
19 
20 /**
21  * @file mpf_audio_file_descriptor.h
22  * @brief MPF Audio File Descriptor
23  */
24 
25 #include <stdio.h>
26 #include "mpf_stream_descriptor.h"
27 
29 
30 /** FILE_READER defined as a stream source */
31 #define FILE_READER STREAM_DIRECTION_RECEIVE
32 /** FILE_WRITER defined as a stream sink */
33 #define FILE_WRITER STREAM_DIRECTION_SEND
34 
35 /** Audio file descriptor declaration */
37 
38 /** Audio file descriptor */
40  /** Indicate descriptor type (reader and/or writer) */
42  /** Codec descriptor to use for audio file read/write */
44  /** File handle to read audio stream */
45  FILE *read_handle;
46  /** File handle to write audio stream */
47  FILE *write_handle;
48  /** Max size of file */
49  apr_size_t max_write_size;
50 };
51 
53 
54 #endif /* MPF_AUDIO_FILE_DESCRIPTOR_H */
MPF Stream Descriptor.
#define APT_END_EXTERN_C
Definition: apt.h:38
Definition: mpf_audio_file_descriptor.h:39
FILE * write_handle
Definition: mpf_audio_file_descriptor.h:47
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
mpf_stream_direction_e
Definition: mpf_stream_descriptor.h:33
apr_size_t max_write_size
Definition: mpf_audio_file_descriptor.h:49
mpf_stream_direction_e mask
Definition: mpf_audio_file_descriptor.h:41
mpf_codec_descriptor_t * codec_descriptor
Definition: mpf_audio_file_descriptor.h:43
FILE * read_handle
Definition: mpf_audio_file_descriptor.h:45
Definition: mpf_codec_descriptor.h:63