Skip to content

Commit

Permalink
Add DTV-DVD Audio Decoder to preferred filters
Browse files Browse the repository at this point in the history
Add Microsoft DTV-DVD Audio Decoder to preferred filters for MPEG files

Issue: #37
  • Loading branch information
MSDN-WhiteKnight committed Mar 26, 2023
1 parent 47b5a57 commit e303b18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SmallMediaPlayer/dshow_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ typedef struct{
bool IsSource;
}SPLITTER_DATA;

// Microsoft DTV-DVD Audio Decoder {E1F1A0B8-BEEE-490D-BA7C-066C40B5E2B9}
SMP_DEFINE_GUID(CLSID_DTVDVDAudioDecoder, 0xE1F1A0B8, 0xBEEE, 0x490D, 0xBA, 0x7C, 0x06, 0x6C, 0x40, 0xB5, 0xE2, 0xB9);
// https://learn.microsoft.com/en-us/windows/win32/directshow/microsoft-mpeg-1-dd-audio-decoder

// DC-Bass Source: ABE7B1D9-4B3E-4ACD-A0D1-92611D3A4492
SMP_DEFINE_GUID(CLSID_DCBassSource, 0xABE7B1D9, 0x4B3E, 0x4ACD, 0xA0, 0xD1, 0x92, 0x61, 0x1D, 0x3A, 0x44, 0x92);
// https://github.com/frafv/DCBassSource/blob/trunk/DCBassSource/DCBassSource.h
Expand Down
1 change: 1 addition & 0 deletions SmallMediaPlayer/player_dshow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ for(i=0;i<c;i++){

res=InsertDecoder(pins[i], CLSID_LavAudioDecoder, TN_AUDIO_DECODER);
if(res==FALSE && mt==MT_MPEG) res=InsertDecoder(pins[i], CLSID_DScalerAudioDecoder, TN_AUDIO_DECODER);
if(res==FALSE && mt==MT_MPEG) res=InsertDecoder(pins[i], CLSID_DTVDVDAudioDecoder, TN_AUDIO_DECODER);
if(res==FALSE) res=InsertAudioDecoder(pins[i],L"ffdshow Audio Decoder");

if(res==FALSE){pGraph->Render(pins[i]);}
Expand Down

0 comments on commit e303b18

Please sign in to comment.