aboutsummaryrefslogtreecommitdiff
path: root/Src/mp3-mpg123/NSVFactory.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/mp3-mpg123/NSVFactory.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/mp3-mpg123/NSVFactory.h')
-rw-r--r--Src/mp3-mpg123/NSVFactory.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Src/mp3-mpg123/NSVFactory.h b/Src/mp3-mpg123/NSVFactory.h
new file mode 100644
index 00000000..5c1245ac
--- /dev/null
+++ b/Src/mp3-mpg123/NSVFactory.h
@@ -0,0 +1,19 @@
+#pragma once
+#include "../nsv/svc_nsvFactory.h"
+
+// {66AFC6B1-BFFD-49e2-BA71-62009F5266B0}
+static const GUID mp3_nsv_guid =
+{ 0x66afc6b1, 0xbffd, 0x49e2, { 0xba, 0x71, 0x62, 0x0, 0x9f, 0x52, 0x66, 0xb0 } };
+
+
+class NSVFactory : public svc_nsvFactory
+{
+public:
+ static const char *getServiceName() { return "MP3 NSV Decoder"; }
+ static GUID getServiceGuid() { return mp3_nsv_guid; }
+ IAudioDecoder *CreateAudioDecoder(FOURCC format, IAudioOutput **output) override;
+
+protected:
+ RECVS_DISPATCH;
+};
+