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
fd80683a
Commit
fd80683a
authored
Jul 18, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/mad: make "gapless_mp3_playback" a block option
Remove another dependency on the config/Global library.
parent
49efb607
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
21 deletions
+44
-21
NEWS
NEWS
+1
-0
mpd.conf.5
doc/mpd.conf.5
+0
-8
mpdconf.example
doc/mpdconf.example
+0
-8
user.xml
doc/user.xml
+29
-0
Migrate.cxx
src/config/Migrate.cxx
+9
-0
Templates.cxx
src/config/Templates.cxx
+1
-1
MadDecoderPlugin.cxx
src/decoder/plugins/MadDecoderPlugin.cxx
+4
-4
No files found.
NEWS
View file @
fd80683a
...
...
@@ -18,6 +18,7 @@ ver 0.21 (not yet released)
* decoder
- gme: try loading m3u sidecar files
- hybrid_dsd: new decoder plugin
- mad: move "gapless_mp3_playback" setting to "decoder" block
- pcm: support audio/L24 (RFC 3190)
* resampler
- soxr: flush resampler at end of song
...
...
doc/mpd.conf.5
View file @
fd80683a
...
...
@@ -127,14 +127,6 @@ This specifies the character set used for the filesystem. A list of supported
character sets can be obtained by running "iconv \-l". The default is
determined from the locale when the db was originally created.
.TP
.B gapless_mp3_playback <yes or no>
This specifies whether to support gapless playback of MP3s which have the
necessary headers. Useful if your MP3s have headers with incorrect
information. If you have such MP3s, it is highly recommended that you fix them
using vbrfix (available from <http://www.willwap.co.uk/Programs/vbrfix.php>)
instead of disabling gapless MP3 playback. The default is to support gapless
MP3 playback.
.TP
.B save_absolute_paths_in_playlists <yes or no>
This specifies whether relative or absolute paths for song filenames are used
when saving playlists. The default is "no".
...
...
doc/mpdconf.example
View file @
fd80683a
...
...
@@ -96,14 +96,6 @@
#
#log_level "default"
#
# If you have a problem with your MP3s ending abruptly it is recommended that
# you set this argument to "no" to attempt to fix the problem. If this solves
# the problem, it is highly recommended to fix the MP3 files with vbrfix
# (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point gapless MP3 playback can be enabled.
#
#gapless_mp3_playback "yes"
#
# Setting "restore_paused" to "yes" puts MPD into pause mode instead
# of starting playback after startup.
#
...
...
doc/user.xml
View file @
fd80683a
...
...
@@ -3068,6 +3068,35 @@ run</programlisting>
playback path to a DSD-capable DAC; for everybody else,
playing back the ALAC copy of the file is better.
</para>
<informaltable>
<tgroup
cols=
"2"
>
<thead>
<row>
<entry>
Setting
</entry>
<entry>
Description
</entry>
</row>
</thead>
<tbody>
<row>
<entry>
<varname>
gapless
</varname>
<parameter>
yes|no
</parameter>
</entry>
<entry>
This specifies whether to support gapless playback
of MP3s which have the necessary headers. Useful if
your MP3s have headers with incorrect information.
If you have such MP3s, it is highly recommended that
you fix them using
<ulink
url=
"http://www.willwap.co.uk/Programs/vbrfix.php"
><application>
vbrfix
</application></ulink>
instead of disabling gapless MP3 playback. The
default is to support gapless MP3 playback.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
<section
id=
"mad_decoder"
>
...
...
src/config/Migrate.cxx
View file @
fd80683a
...
...
@@ -56,8 +56,17 @@ MigrateCurlProxyConfig(ConfigData &config) noexcept
"proxy_password"
);
}
static
void
MigrateMadConfig
(
ConfigData
&
config
)
noexcept
{
MigrateParamToBlockParam
(
config
,
ConfigOption
::
GAPLESS_MP3_PLAYBACK
,
ConfigBlockOption
::
DECODER
,
"plugin"
,
"mad"
,
"gapless"
);
}
void
Migrate
(
ConfigData
&
config
)
noexcept
{
MigrateCurlProxyConfig
(
config
);
MigrateMadConfig
(
config
);
}
src/config/Templates.cxx
View file @
fd80683a
...
...
@@ -68,7 +68,7 @@ const ConfigTemplate config_param_templates[] = {
{
"id3v1_encoding"
,
false
,
true
},
{
"metadata_to_use"
},
{
"save_absolute_paths_in_playlists"
},
{
"gapless_mp3_playback"
},
{
"gapless_mp3_playback"
,
false
,
true
},
{
"auto_update"
},
{
"auto_update_depth"
},
{
"despotify_user"
,
false
,
true
},
...
...
src/decoder/plugins/MadDecoderPlugin.cxx
View file @
fd80683a
...
...
@@ -21,7 +21,7 @@
#include "MadDecoderPlugin.hxx"
#include "../DecoderAPI.hxx"
#include "input/InputStream.hxx"
#include "config/
Global
.hxx"
#include "config/
Block
.hxx"
#include "tag/Id3Scan.hxx"
#include "tag/Rva2.hxx"
#include "tag/Handler.hxx"
...
...
@@ -107,10 +107,10 @@ mad_fixed_to_24_buffer(int32_t *dest, const struct mad_synth *synth,
}
static
bool
mp3_plugin_init
(
gcc_unused
const
ConfigBlock
&
block
)
mp3_plugin_init
(
const
ConfigBlock
&
block
)
{
gapless_playback
=
config_get_bool
(
ConfigOption
::
GAPLESS_MP3_PLAYBACK
,
DEFAULT_GAPLESS_MP3_PLAYBACK
);
gapless_playback
=
block
.
GetBlockValue
(
"gapless"
,
DEFAULT_GAPLESS_MP3_PLAYBACK
);
return
true
;
}
...
...
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