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
9e330747
Commit
9e330747
authored
Dec 27, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/Thread: move software_mixer_set_filter() call to Open()
.. and remove the obsolete method OpenFilter().
parent
d6d465cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
23 deletions
+3
-23
Internal.hxx
src/output/Internal.hxx
+0
-7
OutputThread.cxx
src/output/OutputThread.cxx
+3
-16
No files found.
src/output/Internal.hxx
View file @
9e330747
...
...
@@ -435,13 +435,6 @@ private:
void
CloseOutput
(
bool
drain
);
/**
* Throws std::runtime_error on error.
*
* Mutex must not be locked.
*/
AudioFormat
OpenFilter
(
AudioFormat
&
format
);
/**
* Mutex must not be locked.
*/
void
CloseFilter
();
...
...
src/output/OutputThread.cxx
View file @
9e330747
...
...
@@ -89,22 +89,6 @@ AudioOutput::Disable()
}
}
inline
AudioFormat
AudioOutput
::
OpenFilter
(
AudioFormat
&
format
)
{
assert
(
format
.
IsValid
());
const
auto
result
=
source
.
Open
(
format
,
*
request
.
pipe
,
prepared_replay_gain_filter
,
prepared_other_replay_gain_filter
,
prepared_filter
);
if
(
mixer
!=
nullptr
&&
mixer
->
IsPlugin
(
software_mixer_plugin
))
software_mixer_set_filter
(
*
mixer
,
volume_filter
.
Get
());
return
result
;
}
void
AudioOutput
::
CloseFilter
()
{
...
...
@@ -136,6 +120,9 @@ AudioOutput::Open()
prepared_other_replay_gain_filter
,
prepared_filter
)
.
WithMask
(
config_audio_format
);
if
(
mixer
!=
nullptr
&&
mixer
->
IsPlugin
(
software_mixer_plugin
))
software_mixer_set_filter
(
*
mixer
,
volume_filter
.
Get
());
}
catch
(
const
std
::
runtime_error
&
e
)
{
FormatError
(
e
,
"Failed to open filter for
\"
%s
\"
[%s]"
,
name
,
plugin
.
name
);
...
...
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