From fa26e72af1c30ea81f56f9aa7cf14dcdfa187d32 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sat, 30 Jun 2018 17:59:02 +0200 Subject: [PATCH] Add vgmstream version in foobar's file properties Can be used to check if vgmstream is *really* playing a file --- fb2k/foo_vgmstream.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fb2k/foo_vgmstream.cpp b/fb2k/foo_vgmstream.cpp index 79c05899..8c847290 100644 --- a/fb2k/foo_vgmstream.cpp +++ b/fb2k/foo_vgmstream.cpp @@ -21,6 +21,7 @@ extern "C" { #ifndef VERSION #include "../version.h" #endif + #ifndef VERSION #define PLUGIN_VERSION __DATE__ #else @@ -145,6 +146,8 @@ void input_vgmstream::get_info(t_uint32 p_subsong, file_info & p_info, abort_cal p_info.meta_set("TITLE",temp); } + p_info.info_set("vgmstream version",PLUGIN_VERSION); + p_info.info_set_int("samplerate", samplerate); p_info.info_set_int("channels", channels); p_info.info_set_int("bitspersample",16);