Fixing init result issue.
1 //------------------------------------------------------------------------------
3 #include "iMONDisplayWrapper.h"
5 //------------------------------------------------------------------------------
6 IdwApi* pIdwApi = NULL;
7 //------------------------------------------------------------------------------
8 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
12 case DLL_PROCESS_ATTACH:
13 if (pIdwApi==NULL) //Defensive
15 pIdwApi = new IdwApi(hinstDLL);
18 case DLL_PROCESS_DETACH:
25 //------------------------------------------------------------------------------
26 DSPResult IDW_Init(IDW_INITRESULT* pInitResult)
28 return pIdwApi->Init(pInitResult);
30 //------------------------------------------------------------------------------
31 DSPResult IDW_Uninit()
33 return pIdwApi->Uninit();
35 //------------------------------------------------------------------------------
36 DSPResult IDW_IsInitialized()
38 return pIdwApi->IsInitialized();
40 //------------------------------------------------------------------------------
41 DSPResult IDW_IsPluginModeEnabled()
43 return pIdwApi->IsPluginModeEnabled();
48 DSPResult IDW_GetStatus(IDW_STATUS* aStatus)
50 return pIdwApi->GetStatus(aStatus);
53 //------------------------------------------------------------------------------
54 DSPResult IDW_SetVfdText(LPCWSTR lpszLine1, LPCWSTR lpszLine2)
58 eqData.BandData[0] = 100;
59 eqData.BandData[1] = 90;
60 eqData.BandData[2] = 80;
61 eqData.BandData[3] = 70;
62 eqData.BandData[4] = 60;
63 eqData.BandData[5] = 50;
64 eqData.BandData[6] = 40;
65 eqData.BandData[7] = 30;
66 eqData.BandData[8] = 30;
67 eqData.BandData[9] = 40;
68 eqData.BandData[10] = 50;
69 eqData.BandData[11] = 60;
70 eqData.BandData[12] = 70;
71 eqData.BandData[13] = 80;
72 eqData.BandData[14] = 90;
73 eqData.BandData[15] = 100;
74 return pIdwApi->SetVfdEqData(&eqData);
76 return pIdwApi->SetVfdText(lpszLine1, lpszLine2);
78 //------------------------------------------------------------------------------
79 DSPResult IDW_SetVfdEqData(PDSPEQDATA pEqData)
81 return pIdwApi->SetVfdEqData(pEqData);
83 //------------------------------------------------------------------------------
84 DSPResult IDW_SetLcdText(LPCWSTR lpszLine1)
86 return pIdwApi->SetLcdText(lpszLine1);
88 //------------------------------------------------------------------------------
89 DSPResult IDW_SetLcdEqData(PDSPEQDATA pEqDataL, PDSPEQDATA pEqDataR)
91 return pIdwApi->SetLcdEqData(pEqDataL, pEqDataR);
93 //------------------------------------------------------------------------------
94 DSPResult IDW_SetLcdAllIcons(BOOL bOn)
96 return pIdwApi->SetLcdAllIcons(bOn);
98 //------------------------------------------------------------------------------
99 DSPResult IDW_SetLcdOrangeIcon(BYTE btIconData1, BYTE btIconData2)
101 return pIdwApi->SetLcdOrangeIcon(btIconData1, btIconData2);
103 //------------------------------------------------------------------------------
104 DSPResult IDW_SetLcdMediaTypeIcon(BYTE btIconData)
106 return pIdwApi->SetLcdMediaTypeIcon(btIconData);
108 //------------------------------------------------------------------------------
109 DSPResult IDW_SetLcdSpeakerIcon(BYTE btIconData1, BYTE btIconData2)
111 return pIdwApi->SetLcdSpeakerIcon(btIconData1, btIconData2);
113 //------------------------------------------------------------------------------
114 DSPResult IDW_SetLcdVideoCodecIcon(BYTE btIconData)
116 return pIdwApi->SetLcdVideoCodecIcon(btIconData);
118 //------------------------------------------------------------------------------
119 DSPResult IDW_SetLcdAudioCodecIcon(BYTE btIconData)
121 return pIdwApi->SetLcdAudioCodecIcon(btIconData);
123 //------------------------------------------------------------------------------
124 DSPResult IDW_SetLcdAspectRatioIcon(BYTE btIconData)
126 return pIdwApi->SetLcdAspectRatioIcon(btIconData);
128 //------------------------------------------------------------------------------
129 DSPResult IDW_SetLcdEtcIcon(BYTE btIconData)
131 return pIdwApi->SetLcdEtcIcon(btIconData);
133 //------------------------------------------------------------------------------
134 DSPResult IDW_SetLcdProgress(int nCurPos, int nTotal)
136 return pIdwApi->SetLcdProgress(nCurPos, nTotal);
138 //------------------------------------------------------------------------------