Namespaces | Defines

_src_sound_sound_plib.cc File Reference

Sound class based on PLIB. More...

#include "base/module.hh"
#include "base/file.hh"
#include "base/timer.hh"
#include "base/conf.hh"
#include "base/stream.hh"
#include "sound/module.hh"
#include "sound/conf.hh"
#include "sound/sound_plib.hh"
#include "sound/sound_sample_plib.hh"

Namespaces

namespace  sound
 

Sound module.


Defines

#define SOUND_COMPILE_PLIB_CC   1

Detailed Description

Sound class based on PLIB.

LastChangedDate:
2011-04-23 21:07:07 -0400 (Sat, 23 Apr 2011)
Author:
Jim E. Brooks http://www.palomino3d.org
 * PLIB sound:
 * -----------
 * - To play sound, PLIB requires being pulsed (5 Hz minimum?).
 *   Otherwise, it will play a snippet of a sound file, then fade out.
 * - PLIB alters a sample's volume by modifying its waveform (slow operation).
 *   This Sound class avoids PLIB distorting the waveform by restoring
 *   the original waveform (so changing volume becomes even slower).
 * - PLIB will cause program exit if a sample is deleted while still playing.
 *   stopSample() and update() don't quite work according to the PLIB docs.
 *   The reliable way is to enqueue zombie samples then deleted them
 *   when their "play count" reaches zero.
 * 

Define Documentation

#define SOUND_COMPILE_PLIB_CC   1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:10