mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
- ReactOS only supports WAVE_FORMAT_PCM
- Helps apps like Adobe Flash Player to output the supported format svn path=/trunk/; revision=41966
This commit is contained in:
parent
bee032b26c
commit
ea930be882
1 changed files with 6 additions and 3 deletions
|
@ -159,6 +159,12 @@ WdmAudControlOpen(
|
|||
return SetIrpIoStatus(Irp, STATUS_UNSUCCESSFUL, 0);
|
||||
}
|
||||
|
||||
if (DeviceInfo->u.WaveFormatEx.wFormatTag != WAVE_FORMAT_PCM)
|
||||
{
|
||||
DPRINT("FIXME: Only WAVE_FORMAT_PCM is supported RequestFormat %x\n", DeviceInfo->u.WaveFormatEx.wFormatTag);
|
||||
return SetIrpIoStatus(Irp, STATUS_UNSUCCESSFUL, 0);
|
||||
}
|
||||
|
||||
Status = GetFilterIdAndPinId(DeviceObject, DeviceInfo, ClientInfo, &FilterId, &PinId);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
@ -237,9 +243,6 @@ WdmAudControlOpen(
|
|||
DataFormat->DataFormat.Reserved = 0;
|
||||
DataFormat->DataFormat.MajorFormat = KSDATAFORMAT_TYPE_AUDIO;
|
||||
|
||||
if (DeviceInfo->u.WaveFormatEx.wFormatTag != WAVE_FORMAT_PCM)
|
||||
DPRINT1("FIXME\n");
|
||||
|
||||
DataFormat->DataFormat.SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
|
||||
DataFormat->DataFormat.Specifier = KSDATAFORMAT_SPECIFIER_WAVEFORMATEX;
|
||||
DataFormat->DataFormat.SampleSize = 4;
|
||||
|
|
Loading…
Reference in a new issue