aboutsummaryrefslogtreecommitdiffstats
path: root/src/volume.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-17 20:23:27 +0100
committerMax Kellermann <max@duempel.org>2009-01-17 20:23:27 +0100
commit4d472c265ed0b3f7f61ee624c01c8ef319db7c99 (patch)
tree8ec3ea874c741c9b0e1ab70db2a96e02acec8225 /src/volume.c
parent2bbf378dd8a3f12b4b79228ce562402c29d2cd09 (diff)
downloadmpd-4d472c265ed0b3f7f61ee624c01c8ef319db7c99.tar.gz
mpd-4d472c265ed0b3f7f61ee624c01c8ef319db7c99.tar.xz
mpd-4d472c265ed0b3f7f61ee624c01c8ef319db7c99.zip
conf: no CamelCase, part I
Renamed functions, types, variables.
Diffstat (limited to 'src/volume.c')
-rw-r--r--src/volume.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/volume.c b/src/volume.c
index 5eb0bd64c..3f9a9f1d3 100644
--- a/src/volume.c
+++ b/src/volume.c
@@ -50,22 +50,22 @@ void volume_finish(void)
static void
mixer_reconfigure(char *driver)
{
- ConfigParam *newparam, *param;
+ struct config_param *newparam, *param;
//create parameter list
newparam = newConfigParam(NULL, -1);
- param = getConfigParam(CONF_MIXER_DEVICE);
+ param = config_get_param(CONF_MIXER_DEVICE);
if (param) {
g_warning("deprecated option mixer_device found, translating to %s config section\n", driver);
addBlockParam(newparam, "mixer_device", param->value, -1);
}
- param = getConfigParam(CONF_MIXER_CONTROL);
+ param = config_get_param(CONF_MIXER_CONTROL);
if (param) {
g_warning("deprecated option mixer_control found, translating to %s config section\n", driver);
addBlockParam(newparam, "mixer_control", param->value, -1);
}
- if (newparam->numberOfBlockParams > 0) {
+ if (newparam->num_block_params > 0) {
//call configure method of corrensponding mixer
if (!mixer_configure_legacy(driver, newparam)) {
g_error("Using mixer_type '%s' with not enabled %s output", driver, driver);
@@ -77,7 +77,7 @@ mixer_reconfigure(char *driver)
void volume_init(void)
{
- ConfigParam *param = getConfigParam(CONF_MIXER_TYPE);
+ struct config_param *param = config_get_param(CONF_MIXER_TYPE);
//hw mixing is by default
if (param) {
if (strcmp(param->value, VOLUME_MIXER_SOFTWARE) == 0) {