From 43db9a8267823d7a8c46d7b8aafb43c0ad41173c Mon Sep 17 00:00:00 2001
From: The Android Open Source Project Tremor documentation Tremor version 1.0 - 20020403 declared in "ivorbisfile.h";
+ This is the main function used to decode a Vorbis file within a
+ loop. It returns up to the specified number of bytes of decoded audio
+ in host-endian, signed 16 bit PCM format. If the audio is
+ multichannel, the channels are interleaved in the output buffer.
+ If the passed in buffer is large, ov_read() will not fill
+ it; the passed in buffer size is treated as a limit and
+ not a request.
+
+
+Note that up to this point, the Tremor API could more or less hide the
+ multiple logical bitstream nature of chaining from the toplevel
+ application if the toplevel application didn't particularly care.
+ However, when reading audio back, the application must be aware
+ that multiple bitstream sections do not necessarily use the same
+ number of channels or sampling rate. ov_read() passes
+ back the index of the sequential logical bitstream currently being
+ decoded (in *bitstream) along with the PCM data in order
+ that the toplevel application can handle channel and/or sample
+ rate changes. This number will be incremented at chaining
+ boundaries even for non-seekable streams. For seekable streams, it
+ represents the actual chaining index within the physical bitstream.
+
+
+ Typical usage:
+
+
+
+
+
+
+
+ov_read()
+
+
+
+
+
+
+
+
+
+
+long ov_read(OggVorbis_File *vf, char *buffer, int length, int *bitstream);
+
+ Parameters
+
+
+
+
+Return Values
+
+
+
+
+
+
(one of: garbage between pages, loss of sync followed by
+ recapture, or a corrupt page)Notes
+
+bytes_read = ov_read(&vf,
+buffer, 4096,¤t_section)
+
+
+This reads up to 4096 bytes into a buffer, with signed 16-bit
+little-endian samples.
+
copyright © 2002 Xiph.org |
++ |
Tremor documentation |
+Tremor version 1.0 - 20020403 |
+