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
072e39c9
Commit
072e39c9
authored
Jul 01, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter/ReplayGain: skip PcmVolume if a mixer is set
Previously, volume was applied twice: once by PcmVolume, and again by the hardware mixer.
parent
8dc3f3b2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
NEWS
NEWS
+1
-0
ReplayGainFilterPlugin.cxx
src/filter/plugins/ReplayGainFilterPlugin.cxx
+5
-4
No files found.
NEWS
View file @
072e39c9
ver 0.19.17 (not yet released)
* replay gain: fix "replay_gain_handler mixer" setting
ver 0.19.16 (2016/06/13)
* faster seeking
...
...
src/filter/plugins/ReplayGainFilterPlugin.cxx
View file @
072e39c9
...
...
@@ -134,8 +134,6 @@ ReplayGainFilter::Update()
volume
=
pcm_float_to_volume
(
scale
);
}
pv
.
SetVolume
(
volume
);
if
(
mixer
!=
nullptr
)
{
/* update the hardware mixer volume */
...
...
@@ -146,7 +144,8 @@ ReplayGainFilter::Update()
Error
error
;
if
(
!
mixer_set_volume
(
mixer
,
_volume
,
error
))
LogError
(
error
,
"Failed to update hardware mixer"
);
}
}
else
pv
.
SetVolume
(
volume
);
}
static
Filter
*
...
...
@@ -174,7 +173,9 @@ ReplayGainFilter::Close()
ConstBuffer
<
void
>
ReplayGainFilter
::
FilterPCM
(
ConstBuffer
<
void
>
src
,
gcc_unused
Error
&
error
)
{
return
pv
.
Apply
(
src
);
return
mixer
!=
nullptr
?
src
:
pv
.
Apply
(
src
);
}
const
struct
filter_plugin
replay_gain_filter_plugin
=
{
...
...
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