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
097e200a
Commit
097e200a
authored
Oct 20, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mixer/{oss,alsa}: renamed the mixer source files
parent
bd28caed
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
15 deletions
+17
-15
Makefile.am
Makefile.am
+2
-2
alsa_mixer_plugin.c
src/mixer/alsa_mixer_plugin.c
+4
-4
oss_mixer_plugin.c
src/mixer/oss_mixer_plugin.c
+4
-4
mixer_list.h
src/mixer_list.h
+2
-2
alsa_plugin.c
src/output/alsa_plugin.c
+2
-1
oss_plugin.c
src/output/oss_plugin.c
+2
-1
read_mixer.c
test/read_mixer.c
+1
-1
No files found.
Makefile.am
View file @
097e200a
...
...
@@ -585,7 +585,7 @@ MIXER_SRC = \
if
HAVE_ALSA
OUTPUT_SRC
+=
src/output/alsa_plugin.c
MIXER_SRC
+=
src/mixer/alsa_mixer.c
MIXER_SRC
+=
src/mixer/alsa_mixer
_plugin
.c
endif
if
HAVE_AO
...
...
@@ -610,7 +610,7 @@ endif
if
HAVE_OSS
OUTPUT_SRC
+=
src/output/oss_plugin.c
MIXER_SRC
+=
src/mixer/oss_mixer.c
MIXER_SRC
+=
src/mixer/oss_mixer
_plugin
.c
endif
if
HAVE_OPENAL
...
...
src/mixer/alsa_mixer.c
→
src/mixer/alsa_mixer
_plugin
.c
View file @
097e200a
...
...
@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "
../output
_api.h"
#include "
../mixer
_api.h"
#include "
mixer
_api.h"
#include "
output
_api.h"
#include <glib.h>
#include <alsa/asoundlib.h>
...
...
@@ -47,7 +47,7 @@ alsa_mixer_init(const struct config_param *param)
{
struct
alsa_mixer
*
am
=
g_new
(
struct
alsa_mixer
,
1
);
mixer_init
(
&
am
->
base
,
&
alsa_mixer
);
mixer_init
(
&
am
->
base
,
&
alsa_mixer
_plugin
);
am
->
device
=
config_get_block_string
(
param
,
"mixer_device"
,
VOLUME_MIXER_ALSA_DEFAULT
);
...
...
@@ -211,7 +211,7 @@ alsa_mixer_set_volume(struct mixer *mixer, unsigned volume)
return
true
;
}
const
struct
mixer_plugin
alsa_mixer
=
{
const
struct
mixer_plugin
alsa_mixer
_plugin
=
{
.
init
=
alsa_mixer_init
,
.
finish
=
alsa_mixer_finish
,
.
open
=
alsa_mixer_open
,
...
...
src/mixer/oss_mixer.c
→
src/mixer/oss_mixer
_plugin
.c
View file @
097e200a
...
...
@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "
../output
_api.h"
#include "
../mixer
_api.h"
#include "
mixer
_api.h"
#include "
output
_api.h"
#include <glib.h>
...
...
@@ -69,7 +69,7 @@ oss_mixer_init(const struct config_param *param)
{
struct
oss_mixer
*
om
=
g_new
(
struct
oss_mixer
,
1
);
mixer_init
(
&
om
->
base
,
&
oss_mixer
);
mixer_init
(
&
om
->
base
,
&
oss_mixer
_plugin
);
om
->
device
=
config_get_block_string
(
param
,
"mixer_device"
,
VOLUME_MIXER_OSS_DEFAULT
);
...
...
@@ -184,7 +184,7 @@ oss_mixer_set_volume(struct mixer *mixer, unsigned volume)
return
true
;
}
const
struct
mixer_plugin
oss_mixer
=
{
const
struct
mixer_plugin
oss_mixer
_plugin
=
{
.
init
=
oss_mixer_init
,
.
finish
=
oss_mixer_finish
,
.
open
=
oss_mixer_open
,
...
...
src/mixer_list.h
View file @
097e200a
...
...
@@ -26,8 +26,8 @@
#define MPD_MIXER_LIST_H
extern
const
struct
mixer_plugin
software_mixer_plugin
;
extern
const
struct
mixer_plugin
alsa_mixer
;
extern
const
struct
mixer_plugin
oss_mixer
;
extern
const
struct
mixer_plugin
alsa_mixer
_plugin
;
extern
const
struct
mixer_plugin
oss_mixer
_plugin
;
extern
const
struct
mixer_plugin
pulse_mixer_plugin
;
#endif
src/output/alsa_plugin.c
View file @
097e200a
...
...
@@ -544,5 +544,6 @@ const struct audio_output_plugin alsaPlugin = {
.
play
=
alsa_play
,
.
cancel
=
alsa_cancel
,
.
close
=
alsa_close
,
.
mixer_plugin
=
&
alsa_mixer
,
.
mixer_plugin
=
&
alsa_mixer_plugin
,
};
src/output/oss_plugin.c
View file @
097e200a
...
...
@@ -601,5 +601,6 @@ const struct audio_output_plugin oss_output_plugin = {
.
close
=
oss_output_close
,
.
play
=
oss_output_play
,
.
cancel
=
oss_output_cancel
,
.
mixer_plugin
=
&
oss_mixer
,
.
mixer_plugin
=
&
oss_mixer_plugin
,
};
test/read_mixer.c
View file @
097e200a
...
...
@@ -57,7 +57,7 @@ int main(int argc, G_GNUC_UNUSED char **argv)
g_thread_init
(
NULL
);
mixer
=
mixer_new
(
&
alsa_mixer
,
NULL
);
mixer
=
mixer_new
(
&
alsa_mixer
_plugin
,
NULL
);
if
(
mixer
==
NULL
)
{
g_printerr
(
"mixer_new() failed
\n
"
);
return
2
;
...
...
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