Commit b0d16253 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

wineoss: Remove GetAudioSessionWrapper.

parent e1eb4549
...@@ -48,8 +48,6 @@ ...@@ -48,8 +48,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(oss); WINE_DEFAULT_DEBUG_CHANNEL(oss);
#define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER)
typedef struct _OSSDevice { typedef struct _OSSDevice {
struct list entry; struct list entry;
EDataFlow flow; EDataFlow flow;
...@@ -62,28 +60,6 @@ static struct list g_devices = LIST_INIT(g_devices); ...@@ -62,28 +60,6 @@ static struct list g_devices = LIST_INIT(g_devices);
static WCHAR drv_key_devicesW[256]; static WCHAR drv_key_devicesW[256];
static const WCHAR guidW[] = {'g','u','i','d',0}; static const WCHAR guidW[] = {'g','u','i','d',0};
static CRITICAL_SECTION g_sessions_lock;
static CRITICAL_SECTION_DEBUG g_sessions_lock_debug =
{
0, 0, &g_sessions_lock,
{ &g_sessions_lock_debug.ProcessLocksList, &g_sessions_lock_debug.ProcessLocksList },
0, 0, { (DWORD_PTR)(__FILE__ ": g_sessions_lock") }
};
static CRITICAL_SECTION g_sessions_lock = { &g_sessions_lock_debug, -1, 0, 0, 0, 0 };
extern struct audio_session_wrapper *session_wrapper_create(
struct audio_client *client) DECLSPEC_HIDDEN;
void DECLSPEC_HIDDEN sessions_lock(void)
{
EnterCriticalSection(&g_sessions_lock);
}
void DECLSPEC_HIDDEN sessions_unlock(void)
{
LeaveCriticalSection(&g_sessions_lock);
}
BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved) BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
{ {
switch (reason) switch (reason)
...@@ -110,8 +86,6 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved) ...@@ -110,8 +86,6 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
{ {
OSSDevice *iter, *iter2; OSSDevice *iter, *iter2;
DeleteCriticalSection(&g_sessions_lock);
LIST_FOR_EACH_ENTRY_SAFE(iter, iter2, &g_devices, OSSDevice, entry){ LIST_FOR_EACH_ENTRY_SAFE(iter, iter2, &g_devices, OSSDevice, entry){
HeapFree(GetProcessHeap(), 0, iter); HeapFree(GetProcessHeap(), 0, iter);
} }
...@@ -292,14 +266,3 @@ end: ...@@ -292,14 +266,3 @@ end:
return params.result; return params.result;
} }
/* if channels == 0, then this will return or create a session with
* matching dataflow and GUID. otherwise, channels must also match */
extern HRESULT get_audio_session(const GUID *sessionguid,
IMMDevice *device, UINT channels, AudioSession **out);
HRESULT WINAPI AUDDRV_GetAudioSessionWrapper(const GUID *guid, IMMDevice *device,
AudioSessionWrapper **out)
{
return E_NOTIMPL;
}
...@@ -7,4 +7,3 @@ ...@@ -7,4 +7,3 @@
# MMDevAPI driver functions # MMDevAPI driver functions
@ stdcall -private get_device_name_from_guid(ptr ptr ptr) get_device_name_from_guid @ stdcall -private get_device_name_from_guid(ptr ptr ptr) get_device_name_from_guid
@ stdcall -private GetEndpointIDs(long ptr ptr ptr ptr) AUDDRV_GetEndpointIDs @ stdcall -private GetEndpointIDs(long ptr ptr ptr ptr) AUDDRV_GetEndpointIDs
@ stdcall -private GetAudioSessionWrapper(ptr ptr ptr) AUDDRV_GetAudioSessionWrapper
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment