db/simple: add an AudioFormat to each Song

This commit is contained in:
Max Kellermann
2018-07-06 13:22:17 +02:00
parent c05bca6f2c
commit 72b6c09a73
11 changed files with 68 additions and 7 deletions

View File

@@ -21,6 +21,7 @@
#define MPD_LIGHT_SONG_HXX
#include "Chrono.hxx"
#include "AudioFormat.hxx"
#include "Compiler.h"
#include <string>
@@ -78,6 +79,12 @@ struct LightSong {
*/
SongTime end_time = SongTime::zero();
/**
* The audio format of the song, if given by the decoder
* plugin. May be undefined if unknown.
*/
AudioFormat audio_format = AudioFormat::Undefined();
LightSong(const char *_uri, const Tag &_tag) noexcept
:uri(_uri), tag(_tag) {}