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

src/sound/mikmod.cpp File Reference

#include "stratagus.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.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.

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:
name Filename of the module.
flags Unused.
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-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.