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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26045
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
1 #ifndef MPLAYER_DS_AUDIODECODER_H
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
2 #define MPLAYER_DS_AUDIODECODER_H
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
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
24fa494bedb1 imported from xine
arpi
parents: 2072
diff changeset
5
3444
0c0042de1f95 API changes - now fully compatible with C++ version
arpi
parents: 3063
diff changeset
6 //DS_AudioDecoder * DS_AudioDecoder_Create(const CodecInfo * info, const WAVEFORMATEX* wf);
0c0042de1f95 API changes - now fully compatible with C++ version
arpi
parents: 3063
diff changeset
7 DS_AudioDecoder * DS_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX* wf);
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents:
diff changeset
8
3059
24fa494bedb1 imported from xine
arpi
parents: 2072
diff changeset
9 void DS_AudioDecoder_Destroy(DS_AudioDecoder *this);
24fa494bedb1 imported from xine
arpi
parents: 2072
diff changeset
10
3946
c00db356082f headers cleanup
arpi
parents: 3444
diff changeset
11 int DS_AudioDecoder_Convert(DS_AudioDecoder *this, const void* in_data, unsigned int in_size,
c00db356082f headers cleanup
arpi
parents: 3444
diff changeset
12 void* out_data, unsigned int out_size,
c00db356082f headers cleanup
arpi
parents: 3444
diff changeset
13 unsigned int* size_read, unsigned int* size_written);
3059
24fa494bedb1 imported from xine
arpi
parents: 2072
diff changeset
14
24fa494bedb1 imported from xine
arpi
parents: 2072
diff changeset
15 int DS_AudioDecoder_GetSrcSize(DS_AudioDecoder *this, int dest_size);
24fa494bedb1 imported from xine
arpi
parents: 2072
diff changeset
16
26045
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
17 #endif /* MPLAYER_DS_AUDIODECODER_H */