_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          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
Public Member Functions | Public Attributes | List of all members
CSample Class Referenceabstract

#include <sound_server.h>

Inheritance diagram for CSample:
CSampleFluidSynth CSampleFluidSynthStream CSampleMikMod CSampleMikModStream CSampleVorbis CSampleVorbisStream CSampleWav CSampleWavStream

Public Member Functions

 CSample ()
 
virtual ~CSample ()
 
virtual int Read (void *buf, int len)=0
 

Public Attributes

unsigned char Channels
 
unsigned char SampleSize
 mono or stereo More...
 
unsigned int Frequency
 sample size in bits More...
 
unsigned short BitsPerSample
 frequency in hz More...
 
unsigned char * Buffer
 bits in a sample 8/16/32 More...
 
int Pos
 sample buffer More...
 
int Len
 buffer position More...
 

Detailed Description

RAW samples.

Constructor & Destructor Documentation

CSample::CSample ( )
inline
virtual CSample::~CSample ( )
inlinevirtual

Member Function Documentation

virtual int CSample::Read ( void *  buf,
int  len 
)
pure virtual

Member Data Documentation

unsigned short CSample::BitsPerSample

frequency in hz

unsigned char* CSample::Buffer

bits in a sample 8/16/32

unsigned char CSample::Channels
unsigned int CSample::Frequency

sample size in bits

int CSample::Len

buffer position

int CSample::Pos

sample buffer

unsigned char CSample::SampleSize

mono or stereo


The documentation for this class was generated from the following file:
(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.