comparison loader/dmo/DMO_AudioDecoder.c @ 17977:f70772d02eaa

Convert printfs in aviprint.c to mp_msg and give the information printing functions in this file a verbosity_level parameter.
author diego
date Mon, 27 Mar 2006 17:25:41 +0000
parents b0d1b415320c
children d026c9bb2938
comparison
equal deleted inserted replaced
17976:4c22d2209563 17977:f70772d02eaa
34 #include <stdlib.h> 34 #include <stdlib.h>
35 35
36 #define __MODULE__ "DirectShow audio decoder" 36 #define __MODULE__ "DirectShow audio decoder"
37 37
38 typedef long STDCALL (*GETCLASS) (GUID*, GUID*, void**); 38 typedef long STDCALL (*GETCLASS) (GUID*, GUID*, void**);
39 extern void print_wave_header(WAVEFORMATEX *h); 39 extern void print_wave_header(WAVEFORMATEX *h, int verbose_level);
40 40
41 DMO_AudioDecoder * DMO_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX* wf,int out_channels) 41 DMO_AudioDecoder * DMO_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX* wf,int out_channels)
42 //DMO_AudioDecoder * DMO_AudioDecoder_Create(const CodecInfo * info, const WAVEFORMATEX* wf) 42 //DMO_AudioDecoder * DMO_AudioDecoder_Create(const CodecInfo * info, const WAVEFORMATEX* wf)
43 { 43 {
44 DMO_AudioDecoder *this; 44 DMO_AudioDecoder *this;
87 this->m_sDestType.bTemporalCompression=0; 87 this->m_sDestType.bTemporalCompression=0;
88 this->m_sDestType.lSampleSize=pWF->nBlockAlign; 88 this->m_sDestType.lSampleSize=pWF->nBlockAlign;
89 this->m_sDestType.cbFormat=18; //pWF->cbSize; 89 this->m_sDestType.cbFormat=18; //pWF->cbSize;
90 this->m_sDestType.pbFormat=this->m_sVhdr2; 90 this->m_sDestType.pbFormat=this->m_sVhdr2;
91 91
92 print_wave_header((WAVEFORMATEX *)this->m_sVhdr); 92 print_wave_header((WAVEFORMATEX *)this->m_sVhdr, MSGL_V);
93 print_wave_header((WAVEFORMATEX *)this->m_sVhdr2); 93 print_wave_header((WAVEFORMATEX *)this->m_sVhdr2, MSGL_V);
94 94
95 this->m_pDMO_Filter = DMO_FilterCreate(dllname, guid, &this->m_sOurType, &this->m_sDestType); 95 this->m_pDMO_Filter = DMO_FilterCreate(dllname, guid, &this->m_sOurType, &this->m_sDestType);
96 if( !this->m_pDMO_Filter ) { 96 if( !this->m_pDMO_Filter ) {
97 free(this); 97 free(this);
98 return NULL; 98 return NULL;