author Sam Lantinga <slouken@libsdl.org>
Sun, 12 Feb 2012 17:58:22 -0500
changeset 584 ea53a85853dd
parent 518 8bc9b5fd2aae
child 601 05123263dab3
permissions -rw-r--r--
Fixed 1418 - crash on double free if loading WAV file failed
     1 /*
     2   SDL_mixer:  An audio mixer library based on the SDL library
     3   Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.org>
     5   This software is provided 'as-is', without any express or implied
     6   warranty.  In no event will the authors be held liable for any damages
     7   arising from the use of this software.
     9   Permission is granted to anyone to use this software for any purpose,
    10   including commercial applications, and to alter it and redistribute it
    11   freely, subject to the following restrictions:
    13   1. The origin of this software must not be misrepresented; you must not
    14      claim that you wrote the original software. If you use this software
    15      in a product, an acknowledgment in the product documentation would be
    16      appreciated but is not required.
    17   2. Altered source versions must be plainly marked as such, and must not be
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    21   This is the source needed to decode an Ogg Vorbis into a waveform.
    22   This file by Vaclav Slavik (vaclav.slavik@matfyz.cz).
    23 */
    25 /* $Id$ */
    27 #ifdef OGG_MUSIC
    28 /* Don't call this directly; use Mix_LoadWAV_RW() for now. */
    29 SDL_AudioSpec *Mix_LoadOGG_RW (SDL_RWops *src, int freesrc,
    30         SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len);
    31 #endif