load_aiff.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 21 May 2013 21:21:23 -0700
changeset 617 87116a42526e
parent 386 695494546b3c
child 635 bbce32fcb3df
permissions -rw-r--r--
Cleaned up whitespace for the 2.0.0 release
slouken@111
     1
/*
slouken@111
     2
    SDL_mixer:  An audio mixer library based on the SDL library
slouken@386
     3
    Copyright (C) 1997-2009 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 an AIFF file into a waveform.
slouken@111
    20
    It's pretty straightforward once you get going. The only
slouken@111
    21
    externally-callable function is Mix_LoadAIFF_RW(), which is meant to
slouken@111
    22
    act as identically to SDL_LoadWAV_RW() as possible.
slouken@111
    23
slouken@111
    24
    This file by Torbjrn Andersson (torbjorn.andersson@eurotime.se)
slouken@111
    25
*/
slouken@111
    26
slouken@111
    27
/* $Id$ */
slouken@111
    28
slouken@111
    29
/* Don't call this directly; use Mix_LoadWAV_RW() for now. */
slouken@111
    30
SDL_AudioSpec *Mix_LoadAIFF_RW (SDL_RWops *src, int freesrc,
slouken@617
    31
    SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len);