Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
ecb20c5f
Commit
ecb20c5f
authored
Jan 01, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mixer: renamed mix_* options to mixer_*
There is no reason to use the shortcut "mix" instead of "mixer".
parent
65f037eb
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
mpd.conf.5
doc/mpd.conf.5
+4
-4
mpdconf.example
doc/mpdconf.example
+4
-4
alsa_mixer.c
src/mixer/alsa_mixer.c
+2
-2
oss_mixer.c
src/mixer/oss_mixer.c
+2
-2
volume.c
src/volume.c
+2
-2
No files found.
doc/mpd.conf.5
View file @
ecb20c5f
...
@@ -166,13 +166,13 @@ and mixer_control will apply.
...
@@ -166,13 +166,13 @@ and mixer_control will apply.
.B mixer_device <mixer dev>
.B mixer_device <mixer dev>
This specifies which mixer to use. The default for oss is "/dev/mixer"; the
This specifies which mixer to use. The default for oss is "/dev/mixer"; the
default for alsa is "default". This option is deprecated and should not be
default for alsa is "default". This option is deprecated and should not be
used. Look at the mix_device option of corresponding output device instead.
used. Look at the mix
er
_device option of corresponding output device instead.
.TP
.TP
.B mixer_control <mixer ctrl>
.B mixer_control <mixer ctrl>
This specifies which mixer control to use (sometimes referred to as the
This specifies which mixer control to use (sometimes referred to as the
"device"). Examples of mixer controls are PCM, Line1, Master, etc. An example
"device"). Examples of mixer controls are PCM, Line1, Master, etc. An example
for OSS is "Pcm", and an example for alsa is "PCM". This option is deprecated
for OSS is "Pcm", and an example for alsa is "PCM". This option is deprecated
and should not be used. Look at the mix_control option of corresponding
and should not be used. Look at the mix
er
_control option of corresponding
output device instead.
output device instead.
.TP
.TP
.B replaygain <album or track>
.B replaygain <album or track>
...
@@ -281,11 +281,11 @@ whatever audio format is passed to the audio output.
...
@@ -281,11 +281,11 @@ whatever audio format is passed to the audio output.
.B device <dev>
.B device <dev>
This specifies the device to use for audio output. The default is "default".
This specifies the device to use for audio output. The default is "default".
.TP
.TP
.B mix_device <mixer dev>
.B mix
er
_device <mixer dev>
This specifies which mixer to use. The default for oss is "/dev/mixer"; the
This specifies which mixer to use. The default for oss is "/dev/mixer"; the
default for alsa is "default".
default for alsa is "default".
.TP
.TP
.B mix_control <mixer ctrl>
.B mix
er
_control <mixer ctrl>
This specifies which mixer control to use (sometimes referred to as the
This specifies which mixer control to use (sometimes referred to as the
"device"). Examples of mixer controls are PCM, Line1, Master, etc. An example
"device"). Examples of mixer controls are PCM, Line1, Master, etc. An example
for OSS is "Pcm", and an example for alsa is "PCM".
for OSS is "Pcm", and an example for alsa is "PCM".
...
...
doc/mpdconf.example
View file @
ecb20c5f
...
@@ -162,8 +162,8 @@ log_file "~/.mpd/log"
...
@@ -162,8 +162,8 @@ log_file "~/.mpd/log"
# name "My ALSA Device"
# name "My ALSA Device"
# device "hw:0,0" # optional
# device "hw:0,0" # optional
# format "44100:16:2" # optional
# format "44100:16:2" # optional
# mix_device "default" # optional
# mix
er
_device "default" # optional
# mix_control "PCM" # optional
# mix
er
_control "PCM" # optional
#}
#}
#
#
# An example of an OSS output:
# An example of an OSS output:
...
@@ -173,8 +173,8 @@ log_file "~/.mpd/log"
...
@@ -173,8 +173,8 @@ log_file "~/.mpd/log"
# name "My OSS Device"
# name "My OSS Device"
# device "/dev/dsp" # optional
# device "/dev/dsp" # optional
# format "44100:16:2" # optional
# format "44100:16:2" # optional
# mix_device "/dev/mixer" # optional
# mix
er
_device "/dev/mixer" # optional
# mix_control "PCM" # optional
# mix
er
_control "PCM" # optional
#}
#}
#
#
# An example of a shout output (for streaming to Icecast):
# An example of a shout output (for streaming to Icecast):
...
...
src/mixer/alsa_mixer.c
View file @
ecb20c5f
...
@@ -43,9 +43,9 @@ alsa_mixer_configure(struct alsa_mixer *am, ConfigParam *param)
...
@@ -43,9 +43,9 @@ alsa_mixer_configure(struct alsa_mixer *am, ConfigParam *param)
{
{
BlockParam
*
bp
;
BlockParam
*
bp
;
if
((
bp
=
getBlockParam
(
param
,
"mix_device"
)))
if
((
bp
=
getBlockParam
(
param
,
"mix
er
_device"
)))
am
->
device
=
bp
->
value
;
am
->
device
=
bp
->
value
;
if
((
bp
=
getBlockParam
(
param
,
"mix_control"
)))
if
((
bp
=
getBlockParam
(
param
,
"mix
er
_control"
)))
am
->
control
=
bp
->
value
;
am
->
control
=
bp
->
value
;
}
}
...
...
src/mixer/oss_mixer.c
View file @
ecb20c5f
...
@@ -53,11 +53,11 @@ void
...
@@ -53,11 +53,11 @@ void
oss_mixer_configure
(
struct
oss_mixer
*
om
,
ConfigParam
*
param
)
oss_mixer_configure
(
struct
oss_mixer
*
om
,
ConfigParam
*
param
)
{
{
BlockParam
*
bp
;
BlockParam
*
bp
;
bp
=
getBlockParam
(
param
,
"mix_device"
);
bp
=
getBlockParam
(
param
,
"mix
er
_device"
);
if
(
bp
)
{
if
(
bp
)
{
om
->
device
=
bp
->
value
;
om
->
device
=
bp
->
value
;
}
}
bp
=
getBlockParam
(
param
,
"mix_control"
);
bp
=
getBlockParam
(
param
,
"mix
er
_control"
);
if
(
bp
)
{
if
(
bp
)
{
om
->
control
=
bp
->
value
;
om
->
control
=
bp
->
value
;
}
}
...
...
src/volume.c
View file @
ecb20c5f
...
@@ -57,12 +57,12 @@ mixer_reconfigure(char *driver)
...
@@ -57,12 +57,12 @@ mixer_reconfigure(char *driver)
param
=
getConfigParam
(
CONF_MIXER_DEVICE
);
param
=
getConfigParam
(
CONF_MIXER_DEVICE
);
if
(
param
)
{
if
(
param
)
{
g_warning
(
"deprecated option mixer_device found, translating to %s config section
\n
"
,
driver
);
g_warning
(
"deprecated option mixer_device found, translating to %s config section
\n
"
,
driver
);
addBlockParam
(
newparam
,
"mix_device"
,
param
->
value
,
-
1
);
addBlockParam
(
newparam
,
"mix
er
_device"
,
param
->
value
,
-
1
);
}
}
param
=
getConfigParam
(
CONF_MIXER_CONTROL
);
param
=
getConfigParam
(
CONF_MIXER_CONTROL
);
if
(
param
)
{
if
(
param
)
{
g_warning
(
"deprecated option mixer_control found, translating to %s config section
\n
"
,
driver
);
g_warning
(
"deprecated option mixer_control found, translating to %s config section
\n
"
,
driver
);
addBlockParam
(
newparam
,
"mix_control"
,
param
->
value
,
-
1
);
addBlockParam
(
newparam
,
"mix
er
_control"
,
param
->
value
,
-
1
);
}
}
if
(
newparam
->
numberOfBlockParams
>
0
)
{
if
(
newparam
->
numberOfBlockParams
>
0
)
{
//call configure method of corrensponding mixer
//call configure method of corrensponding mixer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment