EQConfigGroup.cpp 663 B

123456789101112131415161718192021222324252627282930313233
  1. /** (c) Nullsoft, Inc. C O N F I D E N T I A L
  2. ** Filename:
  3. ** Project:
  4. ** Description:
  5. ** Author: Ben Allison [email protected]
  6. ** Created:
  7. **/
  8. #include "main.h"
  9. #include "EqConfigGroup.h"
  10. #include "WinampAttributes.h"
  11. ifc_configitem *EQConfigGroup::GetItem(const wchar_t *name)
  12. {
  13. if (!wcscmp(name, L"frequencies"))
  14. return &config_eq_frequencies;
  15. else if (!wcscmp(name, L"type"))
  16. return &config_eq_type;
  17. else if (!wcscmp(name, L"limiter"))
  18. return &config_eq_limiter;
  19. return 0;
  20. }
  21. #define CBCLASS EQConfigGroup
  22. START_DISPATCH;
  23. CB(IFC_CONFIGGROUP_GETITEM, GetItem)
  24. CB(IFC_CONFIGGROUP_GETGUID, GetGUID)
  25. END_DISPATCH;
  26. #undef CBCLASS