snd_plib.cc File Reference
Sound class based on PLIB. More...
#include "base.hh"
#include "base_file.hh"
#include "base_settings.hh"
#include "gfx.hh"
#include "snd.hh"
#include "snd_plib.hh"
Detailed Description
Sound class based on PLIB.
- Id
- LastChangedDate
- 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 an audio 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_MIXER_DEVICE "/dev/mixer" |
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:16 2007