$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

CSample Class Reference

#include <sound_server.h>

Inheritance diagram for CSample:

CSampleMikMod CSampleMikModStream CSampleVorbis CSampleVorbisStream CSampleWav CSampleWavStream

List of all members.


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
unsigned int Frequency
 sample size in bits
unsigned short BitsPerSample
 frequency in hz
unsigned char * Buffer
 bits in a sample 8/16/32
int Pos
 sample buffer
int Len
 buffer position

Detailed Description

RAW samples.

Constructor & Destructor Documentation

CSample::CSample (  )  [inline]

virtual CSample::~CSample (  )  [inline, virtual]


Member Function Documentation

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


Member Data Documentation

unsigned char CSample::Channels

unsigned char CSample::SampleSize

mono or stereo

unsigned int CSample::Frequency

sample size in bits

unsigned short CSample::BitsPerSample

frequency in hz

unsigned char* CSample::Buffer

bits in a sample 8/16/32

sample buffer

buffer position


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