Vorbisfile documentation

libVorbisfile version 1.65 - 20020702

ov_bitrate

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

This function returns the average bitrate for the specified logical bitstream. This may be different from the ov_info->nominal_bitrate value, as it is based on the actual average for this bitstream if the file is seekable.
この関数は指定した論理ビットストリームの平均ビットレートを返す。 ファイルが移動可能の場合、このビットストリームの実際の平均値を基準にするため、 この値は ov_info->nominal_bitrate の値と異なるだろう。

Nonseekable files will return the nominal bitrate setting or the average of the upper and lower bounds, if any of these values are set.
移動できないファイルの場合、もしセットされていたなら 最小ビットレート設定か、上限と下限の平均値を返す。




long ov_bitrate(OggVorbis_File *vf,int i);

Parameters

vf
A pointer to the OggVorbis_File structure--this is used for ALL the externally visible libvorbisfile functions.
OggVorbis_File構造体へのポインタ。 これはすべての対外的に可視であるlibvorbisfileの関数で使用される。
i
Link to the desired logical bitstream. For nonseekable files, this argument is ignored. To retrieve the bitrate for the entire bitstream, this parameter should be set to -1.
要求する論理ビットストリームへのリンク。移動不可能なファイルではこの引数は無視される。 ビットストリーム全体のビットレートを取り出すには、このパラメータに -1 をセットする。

Return Values

  • OV_EINVAL indicates that an invalid argument value was submitted or that the stream represented by vf is not open.
    OV_EINVAL は vf が表すストリームが開かれてないか、 渡された引数が無効であったことを示す。
  • OV_FALSE means the call returned a 'false' status, which in this case most likely indicates that the file is nonseekable and the upper, lower, and nominal bitrates were unset.
    OV_FALSE は呼び出しが失敗ステータスを返したことを意味する。 最もよくあるケースはファイルが移動不可能で、下限、上限、平均ビットレートがセットされていなかった場合。
  • n indicates the bitrate for the given logical bitstream or the entire physical bitstream. If the file is open for random (seekable) access, it will find the *actual* average bitrate. If the file is streaming (nonseekable), it returns the nominal bitrate (if set) or else the average of the upper/lower bounds (if set).
    n は与えられた論理ビットストリームか物理ビットストリーム全体のビットレートを表す。 もしファイルがランダムアクセス(移動可能)で開かれていたら、*実際の*平均ビットレートを検索する。ファイルがストリーミング(移動不可能)の場合、セットされているなら平均ビットレートか、上限と下限の平均値を返す。



  • copyright © 2002 Xiph.org

    Ogg Vorbis

    Vorbisfile documentation

    libVorbisfile version 1.65 - 20020702