tag/Handler: add method OnAudioFormat()
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user