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
a257504b
Commit
a257504b
authored
7 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mixer/Plugin: pass AudioOutput to init()
Fix breakage from commit
bea5681f
parent
fb0dbce1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
20 additions
and
18 deletions
+20
-18
MixerControl.cxx
src/mixer/MixerControl.cxx
+1
-1
MixerControl.hxx
src/mixer/MixerControl.hxx
+2
-2
MixerPlugin.hxx
src/mixer/MixerPlugin.hxx
+2
-2
AlsaMixerPlugin.cxx
src/mixer/plugins/AlsaMixerPlugin.cxx
+1
-1
HaikuMixerPlugin.cxx
src/mixer/plugins/HaikuMixerPlugin.cxx
+1
-1
NullMixerPlugin.cxx
src/mixer/plugins/NullMixerPlugin.cxx
+1
-1
OssMixerPlugin.cxx
src/mixer/plugins/OssMixerPlugin.cxx
+1
-1
PulseMixerPlugin.cxx
src/mixer/plugins/PulseMixerPlugin.cxx
+1
-1
RoarMixerPlugin.cxx
src/mixer/plugins/RoarMixerPlugin.cxx
+1
-1
SoftwareMixerPlugin.cxx
src/mixer/plugins/SoftwareMixerPlugin.cxx
+1
-1
WinmmMixerPlugin.cxx
src/mixer/plugins/WinmmMixerPlugin.cxx
+1
-1
Init.cxx
src/output/Init.cxx
+6
-4
read_mixer.cxx
test/read_mixer.cxx
+1
-1
No files found.
src/mixer/MixerControl.cxx
View file @
a257504b
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
Mixer
*
Mixer
*
mixer_new
(
EventLoop
&
event_loop
,
mixer_new
(
EventLoop
&
event_loop
,
const
MixerPlugin
&
plugin
,
Filtered
AudioOutput
&
ao
,
const
MixerPlugin
&
plugin
,
AudioOutput
&
ao
,
MixerListener
&
listener
,
MixerListener
&
listener
,
const
ConfigBlock
&
block
)
const
ConfigBlock
&
block
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/mixer/MixerControl.hxx
View file @
a257504b
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
class
Mixer
;
class
Mixer
;
class
EventLoop
;
class
EventLoop
;
struct
Filtered
AudioOutput
;
class
AudioOutput
;
struct
MixerPlugin
;
struct
MixerPlugin
;
class
MixerListener
;
class
MixerListener
;
struct
ConfigBlock
;
struct
ConfigBlock
;
...
@@ -37,7 +37,7 @@ struct ConfigBlock;
...
@@ -37,7 +37,7 @@ struct ConfigBlock;
*/
*/
Mixer
*
Mixer
*
mixer_new
(
EventLoop
&
event_loop
,
const
MixerPlugin
&
plugin
,
mixer_new
(
EventLoop
&
event_loop
,
const
MixerPlugin
&
plugin
,
Filtered
AudioOutput
&
ao
,
AudioOutput
&
ao
,
MixerListener
&
listener
,
MixerListener
&
listener
,
const
ConfigBlock
&
block
);
const
ConfigBlock
&
block
);
...
...
This diff is collapsed.
Click to expand it.
src/mixer/MixerPlugin.hxx
View file @
a257504b
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#define MPD_MIXER_PLUGIN_HXX
#define MPD_MIXER_PLUGIN_HXX
struct
ConfigBlock
;
struct
ConfigBlock
;
struct
Filtered
AudioOutput
;
class
AudioOutput
;
class
Mixer
;
class
Mixer
;
class
MixerListener
;
class
MixerListener
;
class
EventLoop
;
class
EventLoop
;
...
@@ -43,7 +43,7 @@ struct MixerPlugin {
...
@@ -43,7 +43,7 @@ struct MixerPlugin {
* @param param the configuration section
* @param param the configuration section
* @return a mixer object
* @return a mixer object
*/
*/
Mixer
*
(
*
init
)(
EventLoop
&
event_loop
,
Filtered
AudioOutput
&
ao
,
Mixer
*
(
*
init
)(
EventLoop
&
event_loop
,
AudioOutput
&
ao
,
MixerListener
&
listener
,
MixerListener
&
listener
,
const
ConfigBlock
&
block
);
const
ConfigBlock
&
block
);
...
...
This diff is collapsed.
Click to expand it.
src/mixer/plugins/AlsaMixerPlugin.cxx
View file @
a257504b
...
@@ -173,7 +173,7 @@ AlsaMixer::Configure(const ConfigBlock &block)
...
@@ -173,7 +173,7 @@ AlsaMixer::Configure(const ConfigBlock &block)
}
}
static
Mixer
*
static
Mixer
*
alsa_mixer_init
(
EventLoop
&
event_loop
,
gcc_unused
Filtered
AudioOutput
&
ao
,
alsa_mixer_init
(
EventLoop
&
event_loop
,
gcc_unused
AudioOutput
&
ao
,
MixerListener
&
listener
,
MixerListener
&
listener
,
const
ConfigBlock
&
block
)
const
ConfigBlock
&
block
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/mixer/plugins/HaikuMixerPlugin.cxx
View file @
a257504b
...
@@ -48,7 +48,7 @@ public:
...
@@ -48,7 +48,7 @@ public:
};
};
static
Mixer
*
static
Mixer
*
haiku_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
Filtered
AudioOutput
&
ao
,
haiku_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
AudioOutput
&
ao
,
MixerListener
&
listener
,
MixerListener
&
listener
,
gcc_unused
const
ConfigBlock
&
block
)
gcc_unused
const
ConfigBlock
&
block
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/mixer/plugins/NullMixerPlugin.cxx
View file @
a257504b
...
@@ -51,7 +51,7 @@ public:
...
@@ -51,7 +51,7 @@ public:
static
Mixer
*
static
Mixer
*
null_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
null_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
gcc_unused
Filtered
AudioOutput
&
ao
,
gcc_unused
AudioOutput
&
ao
,
MixerListener
&
listener
,
MixerListener
&
listener
,
gcc_unused
const
ConfigBlock
&
block
)
gcc_unused
const
ConfigBlock
&
block
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/mixer/plugins/OssMixerPlugin.cxx
View file @
a257504b
...
@@ -98,7 +98,7 @@ OssMixer::Configure(const ConfigBlock &block)
...
@@ -98,7 +98,7 @@ OssMixer::Configure(const ConfigBlock &block)
static
Mixer
*
static
Mixer
*
oss_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
oss_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
gcc_unused
Filtered
AudioOutput
&
ao
,
gcc_unused
AudioOutput
&
ao
,
MixerListener
&
listener
,
MixerListener
&
listener
,
const
ConfigBlock
&
block
)
const
ConfigBlock
&
block
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/mixer/plugins/PulseMixerPlugin.cxx
View file @
a257504b
...
@@ -161,7 +161,7 @@ pulse_mixer_on_change(PulseMixer &pm,
...
@@ -161,7 +161,7 @@ pulse_mixer_on_change(PulseMixer &pm,
}
}
static
Mixer
*
static
Mixer
*
pulse_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
Filtered
AudioOutput
&
ao
,
pulse_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
AudioOutput
&
ao
,
MixerListener
&
listener
,
MixerListener
&
listener
,
gcc_unused
const
ConfigBlock
&
block
)
gcc_unused
const
ConfigBlock
&
block
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/mixer/plugins/RoarMixerPlugin.cxx
View file @
a257504b
...
@@ -45,7 +45,7 @@ public:
...
@@ -45,7 +45,7 @@ public:
};
};
static
Mixer
*
static
Mixer
*
roar_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
Filtered
AudioOutput
&
ao
,
roar_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
AudioOutput
&
ao
,
MixerListener
&
listener
,
MixerListener
&
listener
,
gcc_unused
const
ConfigBlock
&
block
)
gcc_unused
const
ConfigBlock
&
block
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/mixer/plugins/SoftwareMixerPlugin.cxx
View file @
a257504b
...
@@ -58,7 +58,7 @@ public:
...
@@ -58,7 +58,7 @@ public:
static
Mixer
*
static
Mixer
*
software_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
software_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
gcc_unused
Filtered
AudioOutput
&
ao
,
gcc_unused
AudioOutput
&
ao
,
MixerListener
&
listener
,
MixerListener
&
listener
,
gcc_unused
const
ConfigBlock
&
block
)
gcc_unused
const
ConfigBlock
&
block
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/mixer/plugins/WinmmMixerPlugin.cxx
View file @
a257504b
...
@@ -64,7 +64,7 @@ winmm_volume_encode(int volume)
...
@@ -64,7 +64,7 @@ winmm_volume_encode(int volume)
}
}
static
Mixer
*
static
Mixer
*
winmm_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
Filtered
AudioOutput
&
ao
,
winmm_mixer_init
(
gcc_unused
EventLoop
&
event_loop
,
AudioOutput
&
ao
,
MixerListener
&
listener
,
MixerListener
&
listener
,
gcc_unused
const
ConfigBlock
&
block
)
gcc_unused
const
ConfigBlock
&
block
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/output/Init.cxx
View file @
a257504b
...
@@ -118,19 +118,21 @@ audio_output_load_mixer(EventLoop &event_loop, FilteredAudioOutput &ao,
...
@@ -118,19 +118,21 @@ audio_output_load_mixer(EventLoop &event_loop, FilteredAudioOutput &ao,
return
nullptr
;
return
nullptr
;
case
MixerType
:
:
NULL_
:
case
MixerType
:
:
NULL_
:
return
mixer_new
(
event_loop
,
null_mixer_plugin
,
ao
,
listener
,
return
mixer_new
(
event_loop
,
null_mixer_plugin
,
*
ao
.
output
,
listener
,
block
);
block
);
case
MixerType
:
:
HARDWARE
:
case
MixerType
:
:
HARDWARE
:
if
(
plugin
==
nullptr
)
if
(
plugin
==
nullptr
)
return
nullptr
;
return
nullptr
;
return
mixer_new
(
event_loop
,
*
plugin
,
ao
,
listener
,
return
mixer_new
(
event_loop
,
*
plugin
,
*
ao
.
output
,
listener
,
block
);
block
);
case
MixerType
:
:
SOFTWARE
:
case
MixerType
:
:
SOFTWARE
:
mixer
=
mixer_new
(
event_loop
,
software_mixer_plugin
,
ao
,
mixer
=
mixer_new
(
event_loop
,
software_mixer_plugin
,
listener
,
*
ao
.
output
,
listener
,
ConfigBlock
());
ConfigBlock
());
assert
(
mixer
!=
nullptr
);
assert
(
mixer
!=
nullptr
);
...
...
This diff is collapsed.
Click to expand it.
test/read_mixer.cxx
View file @
a257504b
...
@@ -51,7 +51,7 @@ try {
...
@@ -51,7 +51,7 @@ try {
EventLoop
event_loop
;
EventLoop
event_loop
;
Mixer
*
mixer
=
mixer_new
(
event_loop
,
alsa_mixer_plugin
,
Mixer
*
mixer
=
mixer_new
(
event_loop
,
alsa_mixer_plugin
,
*
(
Filtered
AudioOutput
*
)
nullptr
,
*
(
AudioOutput
*
)
nullptr
,
*
(
MixerListener
*
)
nullptr
,
*
(
MixerListener
*
)
nullptr
,
ConfigBlock
());
ConfigBlock
());
...
...
This diff is collapsed.
Click to expand it.
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