On 11-Apr-08, at 12:21 PM, Matthias Brandt wrote:
> I'm coding on a C++ game with Vorbis- and 5.1-Surround-compatibily.
> For
> two channels (stereo), everything's fine, but when I try to read a
> 6-channel-ogg, ov_read returns -131 (OV_EINVAL). That's strange,
> because
> as the specification says, it only returns OV_HOLE or OV_EBADLINK as
> errors [1].
It can return OV_EINVAL if it can't open file, or if the file headers
are corrupt, or if the stream isn't seekable and it can't get enough
data. You might check those conditions.
-r