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
db2058a2
Commit
db2058a2
authored
Jan 25, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mixer: removed mixer_configure_legacy(), AC_MIXER_CONFIGURE
Those have been superseded by the new legacy configuration code.
parent
188f9e66
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
30 deletions
+0
-30
audio.c
src/audio.c
+0
-17
audio.h
src/audio.h
+0
-1
alsa_mixer.c
src/mixer/alsa_mixer.c
+0
-5
oss_mixer.c
src/mixer/oss_mixer.c
+0
-6
output_api.h
src/output_api.h
+0
-1
No files found.
src/audio.c
View file @
db2058a2
...
...
@@ -466,20 +466,3 @@ bool mixer_control_getvol(unsigned int device, int *volume)
}
return
false
;
}
bool
mixer_configure_legacy
(
char
*
name
,
struct
config_param
*
param
)
{
unsigned
i
;
struct
audio_output
*
output
;
for
(
i
=
0
;
i
<
audioOutputArraySize
;
++
i
)
{
output
=
&
audioOutputArray
[
i
];
if
(
output
&&
output
->
plugin
&&
!
strcmp
(
name
,
output
->
plugin
->
name
))
{
if
(
output
->
plugin
->
control
)
{
g_debug
(
"reconfiguring %s mixer
\n
"
,
name
);
return
output
->
plugin
->
control
(
output
->
data
,
AC_MIXER_CONFIGURE
,
param
);
}
}
}
return
false
;
}
src/audio.h
View file @
db2058a2
...
...
@@ -73,6 +73,5 @@ void saveAudioDevicesState(FILE *fp);
bool
mixer_control_setvol
(
unsigned
int
device
,
int
volume
,
int
rel
);
bool
mixer_control_getvol
(
unsigned
int
device
,
int
*
volume
);
bool
mixer_configure_legacy
(
char
*
name
,
struct
config_param
*
param
);
#endif
src/mixer/alsa_mixer.c
View file @
db2058a2
...
...
@@ -162,11 +162,6 @@ alsa_mixer_control(struct mixer_data *data, int cmd, void *arg)
{
struct
alsa_mixer
*
am
=
(
struct
alsa_mixer
*
)
data
;
switch
(
cmd
)
{
case
AC_MIXER_CONFIGURE
:
alsa_mixer_configure
(
data
,
(
const
struct
config_param
*
)
arg
);
if
(
am
->
handle
)
alsa_mixer_close
(
data
);
return
true
;
case
AC_MIXER_GETVOL
:
{
int
err
;
...
...
src/mixer/oss_mixer.c
View file @
db2058a2
...
...
@@ -153,12 +153,6 @@ oss_mixer_control(struct mixer_data *data, int cmd, void *arg)
{
struct
oss_mixer
*
om
=
(
struct
oss_mixer
*
)
data
;
switch
(
cmd
)
{
case
AC_MIXER_CONFIGURE
:
oss_mixer_configure
(
data
,
(
const
struct
config_param
*
)
arg
);
if
(
om
->
device_fd
>=
0
)
oss_mixer_close
(
data
);
return
true
;
break
;
case
AC_MIXER_GETVOL
:
{
int
left
,
right
,
level
;
...
...
src/output_api.h
View file @
db2058a2
...
...
@@ -127,7 +127,6 @@ enum audio_output_command {
enum
audio_control_command
{
AC_MIXER_GETVOL
=
0
,
AC_MIXER_SETVOL
,
AC_MIXER_CONFIGURE
,
};
struct
audio_output
;
...
...
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