Whole document tree
    

Whole document tree

vorbisfile - function - ov_pcm_total

vorbisfile documentation

vorbisfile version 1.25 - 20000615

ov_pcm_total

declared in "vorbis/vorbisfile.h";

Returns the total pcm samples of the physical bitstream or a specified logical bitstream.


int64_t ov_pcm_total(OggVorbis_File *vf,int i);

Parameters

vf
A pointer to the OggVorbis_File structure--this is used for ALL the externally visible vorbisfile functions.
i
Link to the desired logical bitstream. To retrieve the total pcm samples for the entire physical bitstream, this parameter should be set to -1.

Return Values

  • OV_EINVAL means that the argument was invalid. In this case, the requested bitstream did not exist or the bitstream is unseekable.
  • total length in pcm samples of content if i=-1.
  • length in pcm samples of logical bitstream if i=1 to n.



  • copyright © 2000 vorbis team

    Ogg Vorbis
    team@vorbis.org

    vorbisfile documentation

    vorbisfile version 1.25 - 20000615