cannam@86: cannam@86: cannam@86: cannam@86: Vorbisfile - function - ov_pcm_seek_lap cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86:

Vorbisfile documentation

vorbisfile version 1.3.2 - 20101101

cannam@86: cannam@86:

ov_pcm_seek_lap

cannam@86: cannam@86:

declared in "vorbis/vorbisfile.h";

cannam@86: cannam@86:

Seeks to the offset specified (in pcm samples) within the physical bitstream. This variant of ov_pcm_seek also automatically cannam@86: crosslaps the transition from the previous playback position into the cannam@86: new playback position in order to eliminate clicking and boundary cannam@86: discontinuities. Otherwise, usage and behavior is identical to ov_pcm_seek. cannam@86: cannam@86:

ov_pcm_seek_lap also updates everything needed within the decoder, cannam@86: so you can immediately call ov_read() and cannam@86: get data from the newly seeked to position. cannam@86: cannam@86:

ov_pcm_seek_lap will lap between logical stream links of differing cannam@86: numbers of channels. Any extra channels from the origin of the seek cannam@86: are ignored; playback of these channels simply ends. Extra channels at cannam@86: the destination are lapped from silence. ov_pcm_seek_lap will also cannam@86: lap between logical stream links of differing sample rates. In this cannam@86: case, the sample rates are ignored (no implicit resampling is done to cannam@86: match playback). It is up to the application developer to decide if cannam@86: this behavior makes any sense in a given context; in practical use, cannam@86: these default behaviors perform sensibly. cannam@86: cannam@86:

This function only works for seekable streams. cannam@86: cannam@86:

cannam@86: cannam@86: cannam@86: cannam@86: cannam@86:
cannam@86:

cannam@86: int ov_pcm_seek_lap(OggVorbis_File *vf,ogg_int64_t pos);
cannam@86: 
cannam@86:
cannam@86: cannam@86:

Parameters

cannam@86:
cannam@86:
vf
cannam@86:
A pointer to the OggVorbis_File structure--this is used for ALL the externally visible libvorbisfile cannam@86: functions.
cannam@86:
pos
cannam@86:
Position in pcm samples to seek to in the bitstream.
cannam@86:
cannam@86: cannam@86: cannam@86:

Return Values

cannam@86:
cannam@86:
cannam@86: cannam@86:

cannam@86:
cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86: cannam@86:

copyright © 2000-2010 Xiph.Org

Ogg Vorbis

Vorbisfile documentation

vorbisfile version 1.3.2 - 20101101

cannam@86: cannam@86: cannam@86: cannam@86: