Hi,
Seems like the sdl mpeg library authors are confused
about friend functions, I couldn't get the smpeg
package to compile with g++ 4.1.1 until I cooked up
the following patch.
cheers.
----------begin-patch-------------------
--- MPEGaudio.h 2006-09-19 14:08:36.281793254 -0400
+++ MPEGaudio-edit.h 2006-09-19 14:23:57.808329064
-0400
@@ -148,6 +148,15 @@
char buffer[2*WINDOWSIZE];
};
+
+/* Friend function prototypes for MPEG audio class */
+class MPEGaudio;
+void Play_MPEGaudioSDL(void*, Uint8*, int);
+int Play_MPEGaudio(MPEGaudio*, Uint8*, int);
+#ifdef THREADED_AUDIO
+int Decode_MPEGaudio(void*);
+#endif
+
/* The actual MPEG audio class */
class MPEGaudio : public MPEGerror, public
MPEGaudioaction {
----------end-patch---------------------
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch