vorbisfile documentation |
libVorbisfile version 1.65 - 20020702 |
declared in "vorbis/vorbisfile.h";
This is the function used to decode a Vorbis file within a loop, but
returns samples in native float format instead of in integer formats.
これはループ内でVorbisファイルをデコードするのに使う関数であるが、
整数の代わりにネイティブの浮動少数(float)でサンプルデータを返す。
For more information on how ov_read_float() deals with the complex issues
of chaining, etc, refer to the documentation for ov_read().
ov_read_float() に関するほかの情報、結合に関する複雑な問題の扱い方など、は
ov_read() のドキュメントを参照せよ。
long ov_read(OggVorbis_File *vf, float ***pcm_channels, int *bitstream); |
- OV_HOLE
- indicates there was an interruption in the data.
(one of: garbage between pages, loss of sync followed by recapture, or a corrupt page)
データの中に割り込みがあったことを示す。 (これらの1つ:ページの間にゴミ、再録音による同期失敗、間違ったページ)- OV_EBADLINK
- indicates that an invalid stream section was supplied to libvorbisfile, or the requested link is corrupt.
無効なストリームセクションがlibvorbisfileに提供されたか、要求されたリンクが間違っていることを示す。- 0
- indicates EOF EOFを示す
- n
- indicates actual number of bytes read. ov_read() will decode at most one vorbis packet per invocation, so the value returned will generally be less than length.
実際に読み込んだバイト数を示す。ov_read()は呼出しごとに 最大で1つのVorbisパケットしかデコードしないため、 返ってくる値は通常 length より小さい。
*訳注: ov_read() のものをコピー&ペーストしたための間違いと思われる。 この関数に length は無いし、関数名も ov_read_float() である。
Typical usage:
float **pcm; bytes_read = ov_read_float(&vf,pcm,¤t_section)This decodes one packet's worth of float samples.
*訳注: float **pcm; bytes_read = ov_read_float(&vf,&pcm,¤t_section) だと思われる。
copyright © 2002 vorbis team |
|
vorbisfile documentation |
libVorbisfile version 1.65 - 20020702 |