Commit f118a103 authored by colinw's avatar colinw

Added oggz_read_init () and oggz_read_close () functions so that it will

link successfully when OGGZ_CONFIG_READ is 0, plus changed the read buffer size to 64k to increase performance (drastically) on Symbian OS



git-svn-id: http://svn.annodex.net/liboggz/trunk@432 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 97fcb889
......@@ -64,7 +64,7 @@
/*#define DEBUG_BY_READING_PAGES*/
#define CHUNKSIZE 8500
#define CHUNKSIZE 65536
#define oggz_off_t long
......@@ -350,7 +350,7 @@ oggz_read (OGGZ * oggz, long n)
if (reader->current_unit == 0 && cb_ret == -404) cb_ret = 0;
while (cb_ret != -1 && cb_ret != 1 && bytes_read > 0 && remaining > 0) {
bytes = MIN (remaining, 4096);
bytes = MIN (remaining, CHUNKSIZE);
buffer = ogg_sync_buffer (&reader->ogg_sync, bytes);
if ((bytes_read = (long) oggz_io_read (oggz, buffer, bytes)) == 0) {
/* schyeah! */
......@@ -1112,6 +1112,18 @@ oggz_seek_packets (OGGZ * oggz, long serialno, long packets, int whence)
#include <ogg/ogg.h>
#include "oggz_private.h"
OGGZ *
oggz_read_init (OGGZ * oggz)
{
return NULL;
}
OGGZ *
oggz_read_close (OGGZ * oggz)
{
return NULL;
}
int
oggz_set_read_callback (OGGZ * oggz, long serialno,
OggzReadPacket read_packet, void * user_data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment