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

@@ -25,6 +25,7 @@
#define SONG_BEGIN "song_begin: "
struct Song;
struct AudioFormat;
class DetachedSong;
class BufferedOutputStream;
class TextFile;
@@ -42,6 +43,7 @@ song_save(BufferedOutputStream &os, const DetachedSong &song);
* Throws #std::runtime_error on error.
*/
std::unique_ptr<DetachedSong>
song_load(TextFile &file, const char *uri);
song_load(TextFile &file, const char *uri,
AudioFormat *audio_format_r=nullptr);
#endif