- 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:
Johannes Anderwald 2009-07-15 10:49:17 +00:00
parent bee032b26c
commit ea930be882

View file

@ -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;