tag/Handler: add method OnAudioFormat()

This commit is contained in:
Max Kellermann
2018-07-05 19:06:28 +02:00
parent 9ff1ff75cb
commit e152e843d8
3 changed files with 36 additions and 0 deletions

View File

@@ -26,8 +26,10 @@
#include "tag/Handler.hxx"
#include "tag/Generic.hxx"
#include "fs/Path.hxx"
#include "AudioFormat.hxx"
#include "Log.hxx"
#include "util/ScopeExit.hxx"
#include "util/StringBuffer.hxx"
#include <stdexcept>
@@ -63,6 +65,10 @@ public:
void OnPair(const char *key, const char *value) noexcept override {
printf("\"%s\"=%s\n", key, value);
}
void OnAudioFormat(AudioFormat af) noexcept override {
printf("%s\n", ToString(af).c_str());
}
};
int main(int argc, char **argv)