PlaybackConfigGroup.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 "PlaybackConfigGroup.h"
  10. #include "../Agave/Config/ifc_configitem.h"
  11. #include "WinampAttributes.h"
  12. ifc_configitem *PlaybackConfigGroup::GetItem(const wchar_t *name)
  13. {
  14. if (!wcscmp(name, L"bits"))
  15. return &config_audio_bits;
  16. else if (!wcscmp(name, L"mono"))
  17. return &config_audio_mono;
  18. else if (!wcscmp(name, L"surround"))
  19. return &config_audio_surround;
  20. else if (!wcscmp(name, L"dither"))
  21. return &config_audio_dither;
  22. else if (!wcscmp(name, L"replaygain"))
  23. return &config_replaygain;
  24. else if (!wcscmp(name, L"replaygain_mode"))
  25. return &config_replaygain_mode;
  26. else if (!wcscmp(name, L"replaygain_source"))
  27. return &config_replaygain_source;
  28. else if (!wcscmp(name, L"replaygain_preferred_only"))
  29. return &config_replaygain_preferred_only;
  30. else if (!wcscmp(name, L"non_replaygain"))
  31. return &config_replaygain_non_rg_gain;
  32. else if (!wcscmp(name, L"replaygain_preamp"))
  33. return &config_replaygain_preamp;
  34. else if (!wcscmp(name, L"priority"))
  35. return &config_playback_thread_priority;
  36. return 0;
  37. }
  38. #define CBCLASS PlaybackConfigGroup
  39. START_DISPATCH;
  40. CB(IFC_CONFIGGROUP_GETITEM, GetItem)
  41. CB(IFC_CONFIGGROUP_GETGUID, GetGUID)
  42. END_DISPATCH;
  43. #undef CBCLASS