mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[WDMAUD.DRV]
- Set wave in pins into run state - Fixes hang of ReactOS sndrec32, though it crashes then instantly. Needs more investigation svn path=/trunk/; revision=50894
This commit is contained in:
parent
d7df20df47
commit
753b99d8a5
1 changed files with 12 additions and 12 deletions
|
@ -528,18 +528,18 @@ WdmAudSetWaveDeviceFormatByLegacy(
|
|||
Instance->BufferCount = 100;
|
||||
}
|
||||
|
||||
if (DeviceType == WAVE_OUT_DEVICE_TYPE)
|
||||
{
|
||||
/* Now start the stream */
|
||||
DeviceInfo.u.State = KSSTATE_RUN;
|
||||
SyncOverlappedDeviceIoControl(KernelHandle,
|
||||
IOCTL_SETDEVICE_STATE,
|
||||
(LPVOID) &DeviceInfo,
|
||||
sizeof(WDMAUD_DEVICE_INFO),
|
||||
(LPVOID) &DeviceInfo,
|
||||
sizeof(WDMAUD_DEVICE_INFO),
|
||||
NULL);
|
||||
}
|
||||
/* Now acquire resources */
|
||||
DeviceInfo.u.State = KSSTATE_ACQUIRE;
|
||||
SyncOverlappedDeviceIoControl(KernelHandle, IOCTL_SETDEVICE_STATE, (LPVOID) &DeviceInfo, sizeof(WDMAUD_DEVICE_INFO), (LPVOID) &DeviceInfo, sizeof(WDMAUD_DEVICE_INFO), NULL);
|
||||
|
||||
/* pause the pin */
|
||||
DeviceInfo.u.State = KSSTATE_PAUSE;
|
||||
SyncOverlappedDeviceIoControl(KernelHandle, IOCTL_SETDEVICE_STATE, (LPVOID) &DeviceInfo, sizeof(WDMAUD_DEVICE_INFO), (LPVOID) &DeviceInfo, sizeof(WDMAUD_DEVICE_INFO), NULL);
|
||||
|
||||
/* start the pin */
|
||||
DeviceInfo.u.State = KSSTATE_RUN;
|
||||
SyncOverlappedDeviceIoControl(KernelHandle, IOCTL_SETDEVICE_STATE, (LPVOID) &DeviceInfo, sizeof(WDMAUD_DEVICE_INFO), (LPVOID) &DeviceInfo, sizeof(WDMAUD_DEVICE_INFO), NULL);
|
||||
|
||||
|
||||
return MMSYSERR_NOERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue