shithub: aacenc

Download patch

ref: b538570642ddfccd7683f58cc89b143141126998
parent: b981f2d661960a144752f7094fab783e17c363be
author: knik <knik>
date: Sun Aug 3 04:16:59 EDT 2003

corrected faac library version print

--- a/plugins/winamp/Out_faac.cpp
+++ b/plugins/winamp/Out_faac.cpp
@@ -652,24 +652,21 @@
 void About(HWND hwnd)
 {
 char buf[256];
-#ifndef FAACENC_VERSION
+  unsigned long samplesInput, maxBytesOutput;
+  faacEncHandle hEncoder =
+    faacEncOpen(44100, 2, &samplesInput, &maxBytesOutput);
+  faacEncConfigurationPtr myFormat =
+    faacEncGetCurrentConfiguration(hEncoder);
+
 	sprintf(buf,
 			APP_NAME " %s by Antonio Foranna\n\n"
-			"This plugin uses FAAC encoder engine\n\n"
+			"This plugin uses FAAC encoder engine v%s\n\n"
 			"Compiled on %s\n",
 			 APP_VER,
+			 myFormat->name,
 			 __DATE__
 			 );
-#elif
-	sprintf(buf,
-			APP_NAME " %s by Antonio Foranna\n\n"
-			"This plugin uses FAAC encoder engine v%g\n\n"
-			"Compiled on %s\n",
-			 APP_VER,
-			 FAACENC_VERSION,
-			 __DATE__
-			 );
-#endif
+	faacEncClose(hEncoder);
 	MessageBox(hwnd, buf, "About", MB_OK);
 }
 // *********************************************************************************************