|
a/src/upmpdutils.hxx |
|
b/src/upmpdutils.hxx |
|
... |
|
... |
67 |
song.iscontainer = true;
|
67 |
song.iscontainer = true;
|
68 |
song.id = i; song.parentid = p; song.title = t; song.searchable = s;
|
68 |
song.id = i; song.parentid = p; song.title = t; song.searchable = s;
|
69 |
song.artist = annot;
|
69 |
song.artist = annot;
|
70 |
return song;
|
70 |
return song;
|
71 |
}
|
71 |
}
|
|
|
72 |
static UpSong item(const std::string& id, const std::string& parentid,
|
|
|
73 |
const std::string& title) {
|
|
|
74 |
UpSong song;
|
|
|
75 |
song.iscontainer = false;
|
|
|
76 |
song.id = id;
|
|
|
77 |
song.parentid = parentid;
|
|
|
78 |
song.title = title;
|
|
|
79 |
return song;
|
|
|
80 |
}
|
72 |
};
|
81 |
};
|
73 |
|
82 |
|
74 |
// Convert between db value to percent values (Get/Set Volume and VolumeDb)
|
83 |
// Convert between db value to percent values (Get/Set Volume and VolumeDb)
|
75 |
extern int percentodbvalue(int value);
|
84 |
extern int percentodbvalue(int value);
|
76 |
extern int dbvaluetopercent(int dbvalue);
|
85 |
extern int dbvaluetopercent(int dbvalue);
|