load_voc.h
author Ryan C. Gordon <icculus@icculus.org>
Mon, 15 Jan 2007 16:14:04 +0000
changeset 339 30996c5fd448
parent 241 503416fca921
child 386 695494546b3c
permissions -rw-r--r--
Updated my email address everywhere I spewed it.
slouken@111
     1
/*
slouken@111
     2
    SDL_mixer:  An audio mixer library based on the SDL library
slouken@241
     3
    Copyright (C) 1997-2004 Sam Lantinga
slouken@111
     4
slouken@111
     5
    This library is free software; you can redistribute it and/or
slouken@111
     6
    modify it under the terms of the GNU Library General Public
slouken@111
     7
    License as published by the Free Software Foundation; either
slouken@111
     8
    version 2 of the License, or (at your option) any later version.
slouken@111
     9
slouken@111
    10
    This library is distributed in the hope that it will be useful,
slouken@111
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@111
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@111
    13
    Library General Public License for more details.
slouken@111
    14
slouken@111
    15
    You should have received a copy of the GNU Library General Public
slouken@111
    16
    License along with this library; if not, write to the Free
slouken@111
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@111
    18
slouken@111
    19
    This is the source needed to decode a Creative Labs VOC file into a
slouken@111
    20
    waveform. It's pretty straightforward once you get going. The only
slouken@111
    21
    externally-callable function is Mix_LoadVOC_RW(), which is meant to
slouken@111
    22
    act as identically to SDL_LoadWAV_RW() as possible.
slouken@111
    23
icculus@339
    24
    This file by Ryan C. Gordon (icculus@icculus.org).
slouken@111
    25
slouken@111
    26
    Heavily borrowed from sox v12.17.1's voc.c.
slouken@111
    27
        (http://www.freshmeat.net/projects/sox/)
slouken@111
    28
*/
slouken@111
    29
slouken@111
    30
/* $Id$ */
slouken@111
    31
slouken@111
    32
/* Don't call this directly; use Mix_LoadWAV_RW() for now. */
slouken@111
    33
SDL_AudioSpec *Mix_LoadVOC_RW (SDL_RWops *src, int freesrc,
slouken@111
    34
        SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len);