new feature: toggle replay gain mode (requires >=mpd-0.16)

This commit is contained in:
Andrzej Rybczak
2009-10-23 18:20:52 +02:00
parent 75c4c791fd
commit 1a3e10dab7
7 changed files with 72 additions and 1 deletions

View File

@@ -37,7 +37,8 @@ namespace MPD
enum ItemType { itDirectory, itSong, itPlaylist };
enum PlayerState { psUnknown, psStop, psPlay, psPause };
enum ReplayGainMode { rgmOff, rgmTrack, rgmAlbum };
struct Item
{
Item() : song(0) { }
@@ -161,6 +162,9 @@ namespace MPD
void SetCrossfade(unsigned) const;
void SetVolume(unsigned);
std::string GetReplayGainMode() const;
void SetReplayGainMode(ReplayGainMode) const;
int AddSong(const std::string &, int = -1); // returns id of added song
int AddSong(const Song &, int = -1); // returns id of added song
bool AddRandomSongs(size_t);