Mercurial > mplayer.hg
annotate loader/dshow/DS_AudioDecoder.h @ 29794:df1826dcdb2d
Disable audio when initializing the filter chain fails (can happen e.g. when the hwmpa
decoder is used but the hardware does not support hardware MPEG audio).
Otherwise this will lead to a crash later on when the decode code tries to access
the audio filter chain.
author | reimar |
---|---|
date | Fri, 06 Nov 2009 15:56:30 +0000 |
parents | a8ea87c71d18 |
children | 837cd9762b4e |
rev | line source |
---|---|
26045 | 1 #ifndef MPLAYER_DS_AUDIODECODER_H |
2 #define MPLAYER_DS_AUDIODECODER_H | |
1545 | 3 |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
25547
diff
changeset
|
4 typedef struct DS_AudioDecoder DS_AudioDecoder; |
3059 | 5 |
3444 | 6 //DS_AudioDecoder * DS_AudioDecoder_Create(const CodecInfo * info, const WAVEFORMATEX* wf); |
7 DS_AudioDecoder * DS_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX* wf); | |
1545 | 8 |
3059 | 9 void DS_AudioDecoder_Destroy(DS_AudioDecoder *this); |
10 | |
3946 | 11 int DS_AudioDecoder_Convert(DS_AudioDecoder *this, const void* in_data, unsigned int in_size, |
12 void* out_data, unsigned int out_size, | |
13 unsigned int* size_read, unsigned int* size_written); | |
3059 | 14 |
15 int DS_AudioDecoder_GetSrcSize(DS_AudioDecoder *this, int dest_size); | |
16 | |
26045 | 17 #endif /* MPLAYER_DS_AUDIODECODER_H */ |