____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

CSample Class Reference

#include <sound_server.h>

Inheritance diagram for CSample:

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


Detailed Description

RAW samples.

Definition at line 44 of file sound_server.h.


Constructor & Destructor Documentation

CSample::CSample (  )  [inline]

Definition at line 46 of file sound_server.h.

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

Definition at line 48 of file sound_server.h.


Member Function Documentation

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


Member Data Documentation

unsigned char CSample::Channels

mono or stereo

Definition at line 52 of file sound_server.h.

Referenced by LoadVorbis(), LoadWav(), MixSampleToStereo32(), and PlayMovie().

unsigned char CSample::SampleSize

sample size in bits

Definition at line 53 of file sound_server.h.

Referenced by LoadVorbis(), LoadWav(), MixSampleToStereo32(), and PlayMovie().

unsigned int CSample::Frequency

frequency in hz

Definition at line 54 of file sound_server.h.

Referenced by LoadVorbis(), LoadWav(), and MixSampleToStereo32().

unsigned short CSample::BitsPerSample

bits in a sample 8/16/32

Definition at line 55 of file sound_server.h.

Referenced by LoadWav().

unsigned char* CSample::Buffer


The documentation for this class was generated from the following file:

Generated on Sat Feb 21 00:28:24 2009 for Bos Wars by  doxygen 1.5.6