aboutsummaryrefslogtreecommitdiff
path: root/Src/Winamp/PlaybackConfigGroup.cpp
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/PlaybackConfigGroup.cpp
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Winamp/PlaybackConfigGroup.cpp')
-rw-r--r--Src/Winamp/PlaybackConfigGroup.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/Src/Winamp/PlaybackConfigGroup.cpp b/Src/Winamp/PlaybackConfigGroup.cpp
new file mode 100644
index 00000000..8d836c9f
--- /dev/null
+++ b/Src/Winamp/PlaybackConfigGroup.cpp
@@ -0,0 +1,48 @@
+/** (c) Nullsoft, Inc. C O N F I D E N T I A L
+ ** Filename:
+ ** Project:
+ ** Description:
+ ** Author: Ben Allison benski@nullsoft.com
+ ** Created:
+ **/
+#include "main.h"
+#include "PlaybackConfigGroup.h"
+#include "../Agave/Config/ifc_configitem.h"
+
+#include "WinampAttributes.h"
+
+ifc_configitem *PlaybackConfigGroup::GetItem(const wchar_t *name)
+{
+ if (!wcscmp(name, L"bits"))
+ return &config_audio_bits;
+ else if (!wcscmp(name, L"mono"))
+ return &config_audio_mono;
+ else if (!wcscmp(name, L"surround"))
+ return &config_audio_surround;
+ else if (!wcscmp(name, L"dither"))
+ return &config_audio_dither;
+ else if (!wcscmp(name, L"replaygain"))
+ return &config_replaygain;
+ else if (!wcscmp(name, L"replaygain_mode"))
+ return &config_replaygain_mode;
+ else if (!wcscmp(name, L"replaygain_source"))
+ return &config_replaygain_source;
+ else if (!wcscmp(name, L"replaygain_preferred_only"))
+ return &config_replaygain_preferred_only;
+ else if (!wcscmp(name, L"non_replaygain"))
+ return &config_replaygain_non_rg_gain;
+ else if (!wcscmp(name, L"replaygain_preamp"))
+ return &config_replaygain_preamp;
+ else if (!wcscmp(name, L"priority"))
+ return &config_playback_thread_priority;
+
+ return 0;
+}
+
+
+#define CBCLASS PlaybackConfigGroup
+START_DISPATCH;
+CB(IFC_CONFIGGROUP_GETITEM, GetItem)
+CB(IFC_CONFIGGROUP_GETGUID, GetGUID)
+END_DISPATCH;
+#undef CBCLASS