mirror of
https://github.com/reactos/reactos.git
synced 2024-10-28 00:58:20 +00:00
4f0b8d3db0
svn path=/branches/ntvdm/; revision=59241
56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
/*
|
|
* PROJECT: ReactOS Sound System "MME Buddy" Library
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: lib/sound/mmebuddy/auxiliary/auxMessage.c
|
|
*
|
|
* PURPOSE: Provides the auxMessage exported function, as required by
|
|
* the MME API, for auxiliary device support.
|
|
*
|
|
* PROGRAMMERS: Andrew Greenwood (silverblade@reactos.org)
|
|
*/
|
|
|
|
#include "precomp.h"
|
|
|
|
/*
|
|
Standard MME driver entry-point for messages relating to auxiliary devices.
|
|
*/
|
|
DWORD
|
|
APIENTRY
|
|
auxMessage(
|
|
UINT DeviceId,
|
|
UINT Message,
|
|
DWORD_PTR PrivateHandle,
|
|
DWORD_PTR Parameter1,
|
|
DWORD_PTR Parameter2)
|
|
{
|
|
MMRESULT Result = MMSYSERR_NOTSUPPORTED;
|
|
|
|
AcquireEntrypointMutex(AUX_DEVICE_TYPE);
|
|
|
|
SND_TRACE(L"auxMessage - Message type %d\n", Message);
|
|
|
|
switch ( Message )
|
|
{
|
|
case AUXDM_GETNUMDEVS :
|
|
{
|
|
Result = GetSoundDeviceCount(AUX_DEVICE_TYPE);
|
|
break;
|
|
}
|
|
|
|
case AUXDM_GETDEVCAPS :
|
|
{
|
|
Result = MmeGetSoundDeviceCapabilities(AUX_DEVICE_TYPE,
|
|
DeviceId,
|
|
(PVOID) Parameter1,
|
|
Parameter2);
|
|
break;
|
|
}
|
|
}
|
|
|
|
SND_TRACE(L"auxMessage returning MMRESULT %d\n", Result);
|
|
|
|
ReleaseEntrypointMutex(AUX_DEVICE_TYPE);
|
|
|
|
return Result;
|
|
}
|