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

ReplayGainInfo: add method IsDefined()

parent b30957c8
...@@ -51,6 +51,11 @@ struct ReplayGainTuple { ...@@ -51,6 +51,11 @@ struct ReplayGainTuple {
struct ReplayGainInfo { struct ReplayGainInfo {
ReplayGainTuple tuples[2]; ReplayGainTuple tuples[2];
constexpr bool IsDefined() const {
return tuples[REPLAY_GAIN_ALBUM].IsDefined() ||
tuples[REPLAY_GAIN_TRACK].IsDefined();
}
void Clear() { void Clear() {
tuples[REPLAY_GAIN_ALBUM].Clear(); tuples[REPLAY_GAIN_ALBUM].Clear();
tuples[REPLAY_GAIN_TRACK].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