____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"#include <sound_server.h>

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 | |
Definition at line 44 of file sound_server.h.
| 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.
| virtual int CSample::Read | ( | void * | buf, | |
| int | len | |||
| ) | [pure virtual] |
Implemented in CSampleVorbis, CSampleVorbisStream, CSampleWav, and CSampleWavStream.
| 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 |
| unsigned char* CSample::Buffer |
sample buffer
Definition at line 57 of file sound_server.h.
Referenced by LoadVorbis(), LoadWav(), MixSampleToStereo32(), CSampleWav::Read(), CSampleWavStream::Read(), CSampleVorbis::Read(), VorbisStreamRead(), CSampleVorbis::~CSampleVorbis(), CSampleVorbisStream::~CSampleVorbisStream(), CSampleWav::~CSampleWav(), and CSampleWavStream::~CSampleWavStream().
| int CSample::Pos |
buffer position
Definition at line 58 of file sound_server.h.
Referenced by LoadVorbis(), LoadWav(), CSampleWav::Read(), CSampleWavStream::Read(), CSampleVorbis::Read(), and VorbisStreamRead().
| int CSample::Len |
length of filled buffer
Definition at line 59 of file sound_server.h.
Referenced by LoadVorbis(), LoadWav(), MixSampleToStereo32(), CSampleWav::Read(), CSampleWavStream::Read(), CSampleVorbis::Read(), and VorbisStreamRead().
1.5.6