mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
implement more case to widMessage
svn path=/trunk/; revision=19396
This commit is contained in:
parent
b6e3594ee9
commit
529a616638
1 changed files with 34 additions and 4 deletions
|
@ -320,17 +320,47 @@ APIENTRY DWORD wodMessage(DWORD dwId, DWORD dwMessage, DWORD dwUser, DWORD dwPar
|
|||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
* @implemented
|
||||
*/
|
||||
APIENTRY DWORD widMessage(DWORD dwId, DWORD dwMessage, DWORD dwUser, DWORD dwParam1, DWORD dwParam2)
|
||||
{
|
||||
DPRINT("widMessage\n");
|
||||
|
||||
switch (dwMessage) {
|
||||
case WIDM_GETNUMDEVS:
|
||||
switch (dwMessage)
|
||||
{
|
||||
case WIDM_GETNUMDEVS:
|
||||
DPRINT("WIDM_GETNUMDEVS");
|
||||
return GetDeviceCount(WaveInDevice);
|
||||
|
||||
case WIDM_GETDEVCAPS:
|
||||
DPRINT("WODM_GETDEVCAPS");
|
||||
return GetDeviceCapabilities(dwId, WaveInDevice, (LPBYTE)dwParam1, (DWORD)dwParam2);
|
||||
|
||||
case WIDM_OPEN:
|
||||
DPRINT("WIDM_OPEN");
|
||||
return OpenWaveDevice(WaveInDevice, dwId, dwUser, dwParam1, dwParam2);
|
||||
|
||||
case WIDM_CLOSE:
|
||||
return MMSYSERR_NOERROR;
|
||||
|
||||
case WIDM_ADDBUFFER:
|
||||
return MMSYSERR_NOERROR;
|
||||
|
||||
case WIDM_STOP:
|
||||
return MMSYSERR_NOERROR;
|
||||
|
||||
case WIDM_START:
|
||||
return MMSYSERR_NOERROR;
|
||||
|
||||
case WIDM_RESET:
|
||||
return MMSYSERR_NOERROR;
|
||||
|
||||
case WIDM_GETPOS:
|
||||
return MMSYSERR_NOERROR;
|
||||
|
||||
|
||||
default :
|
||||
return MMSYSERR_NOERROR;
|
||||
return MMSYSERR_NOTSUPPORTED;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue