aboutsummaryrefslogtreecommitdiff
path: root/Src/Winamp/PlaybackConfigGroup.cpp
blob: 8d836c9f0306772ad3b0fb1747b1c5360ccdf54d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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