_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes
wav.cpp File Reference
#include "stratagus.h"
#include "SDL.h"
#include "SDL_endian.h"
#include "iolib.h"
#include "sound_server.h"
#include "wav.h"

Classes

struct  WavData
 
class  CSampleWav
 
class  CSampleWavStream
 

Functions

wav.cpp - wav support
static void swapEndianness (WavHeader *wavHeader)
 
static bool Check (const WavHeader &wavHeader)
 
static void swapEndianness (WavChunk *chunk)
 
static void swapEndianness (WavFMT *wavfmt)
 
static bool IsWavFormatSupported (const WavFMT &wavfmt)
 
CSampleLoadWav (const char *name, int flags)
 

Function Documentation

static bool Check ( const WavHeader wavHeader)
static
static bool IsWavFormatSupported ( const WavFMT wavfmt)
static
CSample* LoadWav ( const char *  name,
int  flags 
)

Load wav.

Parameters
nameFile name.
flagsLoad flags.
Returns
Returns the loaded sample.
Todo:
Add ADPCM loading support!
static void swapEndianness ( WavHeader wavHeader)
static
static void swapEndianness ( WavChunk chunk)
static
static void swapEndianness ( WavFMT wavfmt)
static
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.