3059
|
1 #ifndef AVIFILE_DS_AUDIODECODER_H
|
|
2 #define AVIFILE_DS_AUDIODECODER_H
|
1545
|
3
|
3059
|
4 #ifndef NOAVIFILE_HEADERS
|
|
5 #include "audiodecoder.h"
|
|
6 #include "except.h"
|
|
7 #else
|
3063
|
8 #include "libwin32.h"
|
3059
|
9 #endif
|
1545
|
10 #include "DS_Filter.h"
|
|
11
|
3059
|
12 typedef struct _DS_AudioDecoder
|
|
13 {
|
|
14 WAVEFORMATEX in_fmt;
|
1545
|
15 AM_MEDIA_TYPE m_sOurType, m_sDestType;
|
|
16 DS_Filter* m_pDS_Filter;
|
|
17 char* m_sVhdr;
|
|
18 char* m_sVhdr2;
|
3059
|
19 }DS_AudioDecoder;
|
|
20
|
|
21 #ifndef uint_t
|
|
22 #define uint_t int
|
|
23 #endif
|
|
24
|
3444
|
25 //DS_AudioDecoder * DS_AudioDecoder_Create(const CodecInfo * info, const WAVEFORMATEX* wf);
|
|
26 DS_AudioDecoder * DS_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX* wf);
|
1545
|
27
|
3059
|
28 void DS_AudioDecoder_Destroy(DS_AudioDecoder *this);
|
|
29
|
|
30 int DS_AudioDecoder_Convert(DS_AudioDecoder *this, const void* in_data, uint_t in_size,
|
|
31 void* out_data, uint_t out_size,
|
|
32 uint_t* size_read, uint_t* size_written);
|
|
33
|
|
34 int DS_AudioDecoder_GetSrcSize(DS_AudioDecoder *this, int dest_size);
|
|
35
|
|
36
|
|
37 #endif // AVIFILE_DS_AUDIODECODER_H
|