Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

PenguinSound

Sound playing utilities. More...


Namespaces

namespace  Codec
 Simply supports a decoding variety of sample encodings.

namespace  pp::Filters
 Filters for processing audio data.

namespace  pp::Generators
 Generators for creating audio data.

namespace  pp::Generators
 Generators for creating audio data.

namespace  SoftwareMixer
 Various software mixing routines and related utilities.


Compounds

class  Audio
class  AudioCD
class  AudioToFile
class  CDInfo
class  CDPlayerIni
class  Channel
class  DirectSoundCapture
class  Dsp
class  DspMmapped
class  Esd
class  FileAudio
class  LocalCDDB
class  pp::Generators::MathGenerator
class  NetAudio
class  Sample
class  SampleAF
class  SampleAu
class  SampleClipboard
class  SampleIff
class  SampleRaw
class  SampleVoc
class  SampleWav
class  Sequencer
class  SoftwareMixer::Shift
class  SoftwareMixer::SignType
class  pp::Generators::SimpleGenerator

Functions

 SHIFT_SPECIALIZER (u_int8_t) SHIFT_SPECIALIZER(u_int16_t) SHIFT_SPECIALIZER(u_int32_t) SHIFT_SPECIALIZER(unsigned long) SHIFT_SPECIALIZER(int8_t) SHIFT_SPECIALIZER(int16_t) SHIFT_SPECIALIZER(int32_t) template<typename In, typename Out, bool ChangeSign> class SignConvT
 If the types In and Out are of different sign then make sure the returned value is signed.

template<typenameIn, typenameOut, intBits> unsigned long& VolumeConv (unsigned long& volume)
 Scale the volume to the input and output sample size. More...


Detailed Description

Sound playing utilities.

Author(s):
Peter Burns

Function Documentation

template<typenameIn, typenameOut, intBits>
unsigned long & SoftwareMixer::VolumeConv ( unsigned long & volume ) [inline]
 

Scale the volume to the input and output sample size.

Make sure it uses the full set of bits but divide by the number of channels and multiply it by a bit to make it louder. 16 channels -- can accomodate more than 16 since not all channels will be at there maximum

Parameters:
In   The type used to represent the input samples.
Out   The type used to represet the output samples.
Bits   The number of bits used for channel and volume.
volume   The volume to convert.


Generated at Mon Nov 27 01:47:22 2000 for LibPenguinPlay by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000