load_voc.h
changeset 111 3b709e102787
child 138 4d0dc6b4985d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/load_voc.h	Tue Sep 11 18:24:38 2001 +0000
     1.3 @@ -0,0 +1,34 @@
     1.4 +/*
     1.5 +    SDL_mixer:  An audio mixer library based on the SDL library
     1.6 +    Copyright (C) 1997-2001  Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Library General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Library General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Library General Public
    1.19 +    License along with this library; if not, write to the Free
    1.20 +    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.21 +
    1.22 +    This is the source needed to decode a Creative Labs VOC file into a
    1.23 +    waveform. It's pretty straightforward once you get going. The only
    1.24 +    externally-callable function is Mix_LoadVOC_RW(), which is meant to
    1.25 +    act as identically to SDL_LoadWAV_RW() as possible.
    1.26 +
    1.27 +    This file by Ryan C. Gordon (icculus@linuxgames.com).
    1.28 +
    1.29 +    Heavily borrowed from sox v12.17.1's voc.c.
    1.30 +        (http://www.freshmeat.net/projects/sox/)
    1.31 +*/
    1.32 +
    1.33 +/* $Id$ */
    1.34 +
    1.35 +/* Don't call this directly; use Mix_LoadWAV_RW() for now. */
    1.36 +SDL_AudioSpec *Mix_LoadVOC_RW (SDL_RWops *src, int freesrc,
    1.37 +        SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len);