Enlightenment CVS committal
Author : tsauerbeck
Project : misc
Module : eplayer
Dir : misc/eplayer/src/input/vorbis
Modified Files:
vorbis.c
Log Message:
Cleaned up input plugin buffer handling.
===================================================================
RCS file: /cvsroot/enlightenment/misc/eplayer/src/input/vorbis/vorbis.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- vorbis.c 24 Oct 2003 18:56:39 -0000 1.3
+++ vorbis.c 9 Nov 2003 14:43:03 -0000 1.4
@@ -81,14 +81,19 @@
return sample_rate;
}
-int vorbis_read(unsigned char *buf, int len) {
+int vorbis_read(unsigned char **buf) {
+#define BUF_SIZE 4096
+ static unsigned char outbuf[BUF_SIZE];
+
#ifdef WORDS_BIGENDIAN
static int bigendian = 1;
#else
static int bigendian = 0;
#endif
- return ov_read(&track, buf, len, bigendian, 2, 1, NULL);
+ *buf = outbuf;
+
+ return ov_read(&track, *buf, BUF_SIZE, bigendian, 2, 1, NULL);
}
int vorbis_get_current_pos() {
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs