Commit 0faf86c2 authored by Max Kellermann's avatar Max Kellermann

ReplayGainInfo: add method IsDefined()

parent b30957c8
......@@ -51,6 +51,11 @@ struct ReplayGainTuple {
struct ReplayGainInfo {
ReplayGainTuple tuples[2];
constexpr bool IsDefined() const {
return tuples[REPLAY_GAIN_ALBUM].IsDefined() ||
tuples[REPLAY_GAIN_TRACK].IsDefined();
}
void Clear() {
tuples[REPLAY_GAIN_ALBUM].Clear();
tuples[REPLAY_GAIN_TRACK].Clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment