Vorbisfile documentation

libVorbisfile version 1.65 - 20020702

ov_test

declared in "vorbis/vorbisfile.h";  "vorbis/vorbisfile.h"で定義されている

This partially opens a vorbis file to test for Vorbis-ness. It loads the headers for the first chain, and tests for seekability (but does not seek). Use ov_test_open() to finish opening the file or ov_clear to close/free it.
これはVorbisであるかどうかをテストするためにvorbisファイルを部分的に開く。 最初のチェインのヘッダを読み、移動可能であるかどうかをテストする(しかし移動はしない)。 ファイルのオープンを完了するために ov_test_open() を使うか、 それを閉じて解放するためにov_clear を使う。


int ov_test(FILE *f,OggVorbis_File *vf,char *initial,long ibytes);

Parameters

f
File pointer to an already opened file or pipe (it need not be seekable--though this obviously restricts what can be done with the bitstream).
あらかじめ開かれたファイルかパイプのファイルポインタ。 (移動可能である必要は無い―― たとえそれがビットストリームで可能なことを制限するとしても)
vf
A pointer to the OggVorbis_File structure--this is used for ALL the externally visible libvorbisfile functions. Once this has been called, the same OggVorbis_File struct should be passed to all the libvorbisfile functions.
OggVorbis_File構造体へのポインタ。 これはすべての対外的に可視であるlibvorbisfileの関数で使用される。 一度この関数が呼ばれると同じ OggVorbis_File構造体が すべてのlibvorbisfileの関数に渡されなければならない。
initial
Typically set to NULL. This parameter is useful if some data has already been read from the file and the stream is not seekable. It is used in conjunction with ibytes. In this case, initial should be a pointer to a buffer containing the data read.
通常はNULLをセットする。このパラメータは移動不可能なデータストリームやファイルから、 すでにいくらかデータを読み込んでしまっている場合に便利である。ibytesバイト分結合して使われる。この場合、initial は読まれたデータがあるバッファへのポインタにする必要がある。
ibytes
Typically set to 0. This parameter is useful if some data has already been read from the file and the stream is not seekable. In this case, ibytes should contain the length (in bytes) of the buffer. Used together with initial
通常は0をセットする。このパラメータは移動不可能なデータストリームやファイルから、 すでにいくらかデータを読み込んでしまっている場合に便利である。この場合、 ibytes はバッファの長さをバイト単位で指定する。initialと共に使われる。

Return Values

  • 0 for success 0は成功を示す
  • less than zero for failure: 0は未満の時は失敗である



  • copyright © 2002 Xiph.org

    Ogg Vorbis

    Vorbisfile documentation

    libVorbisfile version 1.65 - 20020702