Chris@1: Chris@1: Chris@1: Chris@1: Vorbisfile - Seeking Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

Vorbisfile documentation

vorbisfile version 1.3.2 - 20101101

Chris@1: Chris@1:

Seeking

Chris@1:

Seeking functions allow you to specify a specific point in the stream to begin or continue decoding. Chris@1:

Chris@1: All libvorbisfile seeking routines are declared in "vorbis/vorbisfile.h". Chris@1: Chris@1:

Certain seeking functions are best suited to different situations. Chris@1: When speed is important and exact positioning isn't required, Chris@1: page-level seeking should be used. Note also that Vorbis files do not Chris@1: necessarily start at a sample number or time offset of zero. Do not Chris@1: be surprised if a file begins at a positive offset of several minutes Chris@1: or hours, such as would happen if a large stream (such as a concert Chris@1: recording) is chopped into multiple separate files. Requesting to Chris@1: seek to a position before the beginning of such a file will seek to Chris@1: the position where audio begins. Chris@1: Chris@1:

As of vorbisfile version 1.68, seeking also optionally provides Chris@1: automatic crosslapping to eliminate clicks and other discontinuity Chris@1: artifacts at seeking boundaries. This fetaure is of particular Chris@1: interest to player and game developers implementing dynamic music and Chris@1: audio engines, or others looking for smooth transitions within a Chris@1: single sample or across multiple samples.

Chris@1: Chris@1:

Naturally, seeking is available only within a seekable file or Chris@1: stream. Seeking functions will return OV_ENOSEEK on Chris@1: nonseekable files and streams. Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:
functionpurpose
ov_raw_seekThis function seeks to a position specified in the compressed bitstream, specified in bytes.
ov_pcm_seekThis function seeks to a specific audio sample number, specified in pcm samples.
ov_pcm_seek_pageThis function seeks to the closest page preceding the specified audio sample number, specified in pcm samples.
ov_time_seekThis function seeks to the specific time location in the bitstream, specified in seconds
ov_time_seek_pageThis function seeks to the closest page preceding the specified time position in the bitstream
ov_raw_seek_lapThis function seeks to a position specified in the compressed bitstream, specified in bytes. The boundary between the old and new playback positions is crosslapped to eliminate discontinuities.
ov_pcm_seek_lapThis function seeks to a specific audio sample number, specified in pcm samples. The boundary between the old and new playback positions is crosslapped to eliminate discontinuities.
ov_pcm_seek_page_lapThis function seeks to the closest page preceding the specified audio sample number, specified in pcm samples. The boundary between the old and new playback positions is crosslapped to eliminate discontinuities.
ov_time_seek_lapThis function seeks to the specific time location in the bitstream, specified in seconds. The boundary between the old and new playback positions is crosslapped to eliminate discontinuities.
ov_time_seek_page_lapThis function seeks to the closest page preceding the specified time position in the bitstream. The boundary between the old and new playback positions is crosslapped to eliminate discontinuities.
Chris@1: Chris@1:

Chris@1:


Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

copyright © 2000-2010 Xiph.Org

Ogg Vorbis

Vorbisfile documentation

vorbisfile version 1.3.2 - 20101101

Chris@1: Chris@1: Chris@1: Chris@1: