// Copyright 2014-2025 Jesper Larsson
//
// This file is part of Klipspringer, <https://klipspringer.avadeaux.net/>
//
// Klipspringer is free software: you can redistribute it and/or modify it under the terms of the
// GNU General Public License as published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// Klipspringer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
// even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with Klipspringer. If
// not, see <https://www.gnu.org/licenses/>.

#ifndef VORBIS_ERR_H
#define VORBIS_ERR_H

#include "vorbis/codec.h"

const char *vorbis_strerror(int err) {
    switch (err) {
    case OV_FALSE: return "Vorbis call returned false status";
    case OV_EOF: return "Vorbis end of file";
    case OV_HOLE: return "interruption in Vorbis data (garbage, loss of sync, corrupt page)";
    case OV_EREAD: return "Vorbis read from media returned error";
    case OV_EFAULT: return "Vorbis internal logic fault, possible heap/stack corruption";
    case OV_EIMPL: return "Vorbis feature not implemented";
    case OV_EINVAL: return "Vorbis invalid argument value";
    case OV_ENOTVORBIS: return "not Vorbis data";
    case OV_EBADHEADER: return "invalid Vorbis bitstream header";
    case OV_EVERSION: return "Vorbis version mismatch";
    case OV_ENOTAUDIO: return "Vorbis packet is not audio data";
    case OV_EBADPACKET: return "invalid Vorbis packet";
    case OV_EBADLINK: return "invalid stream section or link corrupt";
    case OV_ENOSEEK: return "bitstream not seekable";
    default: return "Vorbis error";
    }
}

#endif

Version: v4.3.2.2 (2026-05-16T17:03:34+02:00)
Raw file
Source code overview
Klipspringer home