_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          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
mikmod.cpp File Reference
#include "stratagus.h"
#include "sound.h"
#include "sound_server.h"
#include "iolib.h"
#include <mikmod.h>

Classes

struct  MikModData
 
class  CSampleMikMod
 
class  CSampleMikModStream
 

mikmod.cpp - MikMod support

static CFileCurrentFile
 
static MREADER MReader = { Seek, Tell, Read, Get, Eof }
 
static BOOL Seek (struct MREADER *, long off, int whence)
 
static long Tell (struct MREADER *)
 
static BOOL Read (struct MREADER *, void *buf, size_t len)
 
static int Get (struct MREADER *)
 
static BOOL Eof (struct MREADER *)
 
CSampleLoadMikMod (const char *name, int flags)
 Load a vorbis file. More...
 

Function Documentation

static BOOL Eof ( struct MREADER *  )
static
static int Get ( struct MREADER *  )
static
CSample* LoadMikMod ( const char *  name,
int  flags 
)

Load a vorbis file.

Load MikMod.

Parameters
nameFilename of the module.
flagsUnused.
Returns
Returns the loaded sample.
static BOOL Read ( struct MREADER *  ,
void *  buf,
size_t  len 
)
static
static BOOL Seek ( struct MREADER *  ,
long  off,
int  whence 
)
static
static long Tell ( struct MREADER *  )
static

Variable Documentation

CFile* CurrentFile
static
MREADER MReader = { Seek, Tell, Read, Get, Eof }
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.