mmdevapi: SHAREDMODE_EXCLUSIVE + EVENTCALLBACK is too ... exclusive for now.
This commit is contained in:
parent
9d63e6f944
commit
7c5b90006c
|
@ -835,6 +835,11 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
|
|||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
if(mode == AUDCLNT_SHAREMODE_EXCLUSIVE && flags & AUDCLNT_STREAMFLAGS_EVENTCALLBACK){
|
||||
FIXME("EXCLUSIVE mode with EVENTCALLBACK\n");
|
||||
return AUDCLNT_E_DEVICE_IN_USE;
|
||||
}
|
||||
|
||||
if(!duration)
|
||||
duration = 300000; /* 0.03s */
|
||||
|
||||
|
|
|
@ -961,6 +961,11 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
|
|||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
if(mode == AUDCLNT_SHAREMODE_EXCLUSIVE && flags & AUDCLNT_STREAMFLAGS_EVENTCALLBACK){
|
||||
FIXME("EXCLUSIVE mode with EVENTCALLBACK\n");
|
||||
return AUDCLNT_E_DEVICE_IN_USE;
|
||||
}
|
||||
|
||||
OSSpinLockLock(&This->lock);
|
||||
|
||||
if(This->aqueue){
|
||||
|
|
|
@ -907,6 +907,11 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
|
|||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
if(mode == AUDCLNT_SHAREMODE_EXCLUSIVE && flags & AUDCLNT_STREAMFLAGS_EVENTCALLBACK){
|
||||
FIXME("EXCLUSIVE mode with EVENTCALLBACK\n");
|
||||
return AUDCLNT_E_DEVICE_IN_USE;
|
||||
}
|
||||
|
||||
EnterCriticalSection(&This->lock);
|
||||
|
||||
if(This->initted){
|
||||
|
|
Loading…
Reference in New Issue