decoder/adplug: log version number
This commit is contained in:
		| @@ -24,6 +24,7 @@ | |||||||
| #include "CheckAudioFormat.hxx" | #include "CheckAudioFormat.hxx" | ||||||
| #include "fs/Path.hxx" | #include "fs/Path.hxx" | ||||||
| #include "util/Error.hxx" | #include "util/Error.hxx" | ||||||
|  | #include "util/Domain.hxx" | ||||||
| #include "util/Macros.hxx" | #include "util/Macros.hxx" | ||||||
| #include "Log.hxx" | #include "Log.hxx" | ||||||
|  |  | ||||||
| @@ -32,11 +33,16 @@ | |||||||
|  |  | ||||||
| #include <assert.h> | #include <assert.h> | ||||||
|  |  | ||||||
|  | static constexpr Domain adplug_domain("adplug"); | ||||||
|  |  | ||||||
| static unsigned sample_rate; | static unsigned sample_rate; | ||||||
|  |  | ||||||
| static bool | static bool | ||||||
| adplug_init(const config_param ¶m) | adplug_init(const config_param ¶m) | ||||||
| { | { | ||||||
|  | 	FormatDebug(adplug_domain, "adplug %s", | ||||||
|  | 		    CAdPlug::get_version().c_str()); | ||||||
|  |  | ||||||
| 	Error error; | 	Error error; | ||||||
|  |  | ||||||
| 	sample_rate = param.GetBlockValue("sample_rate", 48000u); | 	sample_rate = param.GetBlockValue("sample_rate", 48000u); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann