#include <SoundInfo.h>
Public Types | |
| enum | DataSource { FILESYSTEM, DATA_16_MONO, DATA_8_MONO } |
Public Methods | |
| SoundInfo () | |
Public Attributes | |
| std::string | alias |
| name of the sound. this is the "handle", or how you refer to the sound. More... | |
| DataSource | datasource |
| which of the following resources to use... More... | |
| std::string | filename |
| source of the sound... More... | |
| gmtl::Vec3f | position |
| 3D position. More... | |
| bool | ambient |
| is the sound ambient (true) or positional (false)? More... | |
| bool | retriggerable |
| can the sound be retriggered while playing? More... | |
| int | repeat |
| number of times to repeat (static), -1 is infinite. More... | |
| float | pitchbend |
| from 0 to 1. 0 is not a legal value. More... | |
| float | cutoff |
| from 0 to 1. More... | |
| float | volume |
| from 0 to 1. More... | |
| bool | streaming |
| should we stream the sound from disk? More... | |
| bool | triggerOnNextBind |
| do not use. internal use only. More... | |
| int | repeatCountdown |
| do not use. internal use only. More... | |
typically, you will fill this out and pass it to a SoundHandle object to configure your sound.
Definition at line 67 of file SoundInfo.h.
|
|
Definition at line 92 of file SoundInfo.h.
00093 {
00094 FILESYSTEM, DATA_16_MONO, DATA_8_MONO
00095 };
|
|
|
Definition at line 69 of file SoundInfo.h. References alias, ambient, cutoff, datasource, filename, FILESYSTEM, pitchbend, position, repeat, repeatCountdown, retriggerable, streaming, triggerOnNextBind, and volume.
00069 : alias(), 00070 datasource( FILESYSTEM ), 00071 filename(), 00072 ambient( false ), 00073 retriggerable( false ), 00074 repeat( 1 ), 00075 pitchbend( 1.0f ), 00076 cutoff( 1.0f ), 00077 volume( 1.0f ), 00078 streaming( false ), 00079 triggerOnNextBind( false ), 00080 repeatCountdown( 0 ) 00081 { 00082 //position.makeIdent(); 00083 position[0] = 0.0f; 00084 position[1] = 0.0f; 00085 position[2] = 0.0f; 00086 } |
|
|
name of the sound. this is the "handle", or how you refer to the sound.
Definition at line 90 of file SoundInfo.h. Referenced by SoundInfo. |
|
|
which of the following resources to use...
Definition at line 98 of file SoundInfo.h. Referenced by SoundInfo. |
|
|
source of the sound... for audioworks, the file should be .wav 11025hz mono for openal, the file should be .wav mono Definition at line 104 of file SoundInfo.h. Referenced by SoundInfo. |
|
|
3D position.
Definition at line 107 of file SoundInfo.h. Referenced by SoundInfo. |
|
|
is the sound ambient (true) or positional (false)?
Definition at line 110 of file SoundInfo.h. Referenced by SoundInfo. |
|
|
can the sound be retriggered while playing?
Definition at line 113 of file SoundInfo.h. Referenced by SoundInfo. |
|
|
number of times to repeat (static), -1 is infinite.
Definition at line 116 of file SoundInfo.h. Referenced by SoundInfo. |
|
|
from 0 to 1. 0 is not a legal value.
Definition at line 119 of file SoundInfo.h. Referenced by SoundInfo. |
|
|
from 0 to 1.
Definition at line 122 of file SoundInfo.h. Referenced by SoundInfo. |
|
|
from 0 to 1.
Definition at line 125 of file SoundInfo.h. Referenced by SoundInfo. |
|
|
should we stream the sound from disk?
Definition at line 128 of file SoundInfo.h. Referenced by SoundInfo. |
|
|
do not use. internal use only.
Definition at line 132 of file SoundInfo.h. Referenced by snx::SoundImplementation::configure, SoundInfo, snx::StubSoundImplementation::stop, and snx::StubSoundImplementation::trigger. |
|
|
do not use. internal use only.
Definition at line 134 of file SoundInfo.h. Referenced by SoundInfo. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002