mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 04:42:00 +00:00
[WDMAUD.DRV]
- Kernel streaming pins need to transit states from Run -> Pause -> Acquire -> Stop. - Fixes SB Live playback hang on last tone when stopping playback svn path=/trunk/; revision=49191
This commit is contained in:
parent
5542d91941
commit
7c151f3f05
|
@ -282,6 +282,25 @@ WdmAudCloseSoundDeviceByLegacy(
|
||||||
/* First stop the stream */
|
/* First stop the stream */
|
||||||
if (DeviceType != MIXER_DEVICE_TYPE)
|
if (DeviceType != MIXER_DEVICE_TYPE)
|
||||||
{
|
{
|
||||||
|
DeviceInfo.u.State = KSSTATE_PAUSE;
|
||||||
|
SyncOverlappedDeviceIoControl(KernelHandle,
|
||||||
|
IOCTL_SETDEVICE_STATE,
|
||||||
|
(LPVOID) &DeviceInfo,
|
||||||
|
sizeof(WDMAUD_DEVICE_INFO),
|
||||||
|
(LPVOID) &DeviceInfo,
|
||||||
|
sizeof(WDMAUD_DEVICE_INFO),
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
DeviceInfo.u.State = KSSTATE_ACQUIRE;
|
||||||
|
SyncOverlappedDeviceIoControl(KernelHandle,
|
||||||
|
IOCTL_SETDEVICE_STATE,
|
||||||
|
(LPVOID) &DeviceInfo,
|
||||||
|
sizeof(WDMAUD_DEVICE_INFO),
|
||||||
|
(LPVOID) &DeviceInfo,
|
||||||
|
sizeof(WDMAUD_DEVICE_INFO),
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
|
||||||
DeviceInfo.u.State = KSSTATE_STOP;
|
DeviceInfo.u.State = KSSTATE_STOP;
|
||||||
SyncOverlappedDeviceIoControl(KernelHandle,
|
SyncOverlappedDeviceIoControl(KernelHandle,
|
||||||
IOCTL_SETDEVICE_STATE,
|
IOCTL_SETDEVICE_STATE,
|
||||||
|
|
Loading…
Reference in a new issue