Merge branch 'sid-genre-option' of git://github.com/frno7/MPD
This commit is contained in:
commit
349a2ea7eb
2
NEWS
2
NEWS
|
@ -8,6 +8,8 @@ ver 0.22 (not yet released)
|
||||||
- ffmpeg: allow partial reads
|
- ffmpeg: allow partial reads
|
||||||
* archive
|
* archive
|
||||||
- iso9660: support seeking
|
- iso9660: support seeking
|
||||||
|
* decoder
|
||||||
|
- sidplay: add option "default_genre"
|
||||||
* filter
|
* filter
|
||||||
- ffmpeg: new plugin based on FFmpeg's libavfilter library
|
- ffmpeg: new plugin based on FFmpeg's libavfilter library
|
||||||
- hdcd: new plugin based on FFmpeg's "af_hdcd" for HDCD playback
|
- hdcd: new plugin based on FFmpeg's "af_hdcd" for HDCD playback
|
||||||
|
|
|
@ -485,6 +485,8 @@ C64 SID decoder based on `libsidplayfp <https://sourceforge.net/projects/sidplay
|
||||||
- Location of your songlengths file, as distributed with the HVSC. The sidplay plugin checks this for matching MD5 fingerprints. See http://www.hvsc.c64.org/download/C64Music/DOCUMENTS/Songlengths.faq.
|
- Location of your songlengths file, as distributed with the HVSC. The sidplay plugin checks this for matching MD5 fingerprints. See http://www.hvsc.c64.org/download/C64Music/DOCUMENTS/Songlengths.faq.
|
||||||
* - **default_songlength SECONDS**
|
* - **default_songlength SECONDS**
|
||||||
- This is the default playing time in seconds for songs not in the songlength database, or in case you're not using a database. A value of 0 means play indefinitely.
|
- This is the default playing time in seconds for songs not in the songlength database, or in case you're not using a database. A value of 0 means play indefinitely.
|
||||||
|
* - **default_genre GENRE**
|
||||||
|
- Optional default genre for SID songs.
|
||||||
* - **filter yes|no**
|
* - **filter yes|no**
|
||||||
- Turns the SID filter emulation on or off.
|
- Turns the SID filter emulation on or off.
|
||||||
* - **kernal**
|
* - **kernal**
|
||||||
|
|
|
@ -68,6 +68,7 @@ static SidDatabase *songlength_database;
|
||||||
|
|
||||||
static bool all_files_are_containers;
|
static bool all_files_are_containers;
|
||||||
static unsigned default_songlength;
|
static unsigned default_songlength;
|
||||||
|
static std::string default_genre;
|
||||||
|
|
||||||
static bool filter_setting;
|
static bool filter_setting;
|
||||||
|
|
||||||
|
@ -116,6 +117,8 @@ sidplay_init(const ConfigBlock &block)
|
||||||
|
|
||||||
default_songlength = block.GetPositiveValue("default_songlength", 0u);
|
default_songlength = block.GetPositiveValue("default_songlength", 0u);
|
||||||
|
|
||||||
|
default_genre = block.GetBlockValue("default_genre", "");
|
||||||
|
|
||||||
all_files_are_containers =
|
all_files_are_containers =
|
||||||
block.GetBlockValue("all_files_are_containers", true);
|
block.GetBlockValue("all_files_are_containers", true);
|
||||||
|
|
||||||
|
@ -471,6 +474,10 @@ ScanSidTuneInfo(const SidTuneInfo &info, unsigned track, unsigned n_tracks,
|
||||||
if (artist != nullptr)
|
if (artist != nullptr)
|
||||||
handler.OnTag(TAG_ARTIST, artist);
|
handler.OnTag(TAG_ARTIST, artist);
|
||||||
|
|
||||||
|
/* genre */
|
||||||
|
if (!default_genre.empty())
|
||||||
|
handler.OnTag(TAG_GENRE, default_genre.c_str());
|
||||||
|
|
||||||
/* date */
|
/* date */
|
||||||
const char *date = GetInfoString(info, 2);
|
const char *date = GetInfoString(info, 2);
|
||||||
if (date != nullptr)
|
if (date != nullptr)
|
||||||
|
|
Loading…
Reference in New Issue