Skip to content

Commit

Permalink
Report get/set support for effect properties on fx slots
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Apr 5, 2023
1 parent c3f0905 commit 490497f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions eax.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ HRESULT EAX4Slot_Query(DSPrimary *prim, DWORD propid, ULONG *pTypeSupport)
*pTypeSupport = KSPROPERTY_SUPPORT_GET | KSPROPERTY_SUPPORT_SET;
return DS_OK;
}
/* FIXME: This should probably only succeed for the available parameters of
* the current effect type.
*/
if((propid&~EAXFXSLOT_PARAMETER_DEFERRED) <= EAXREVERB_FLAGS)
{
*pTypeSupport = KSPROPERTY_SUPPORT_GET | KSPROPERTY_SUPPORT_SET;
return DS_OK;
}
FIXME("Unhandled propid: 0x%08lx\n", propid);
return E_PROP_ID_UNSUPPORTED;
}
Expand Down

0 comments on commit 490497f

Please sign in to comment.