|
QSDK 1.1 Documentation |
#include <Q/q.h>
Inheritance diagram for Q::Sound:

Public Member Functions | |
| Sound () | |
| Sound (const char *name) | |
| float | falloff () const |
| float | range () const |
| float | fadeIn () const |
| float | fadeOut () const |
| AudioEffect | effectOverride () const |
| Utils::Result | setFalloff (float) |
| Utils::Result | setRange (float) |
| Utils::Result | setFade (float in, float out) |
| Utils::Result | setEffectOverride (const AudioEffect &) |
| SampleIterator | samples () |
Static Public Member Functions | |
| Sound | create (const char *name, const Database &db=Database()) |
| Sound | find (const char *name) |
| ClassType | classType () |
| Sound | cast (const ObjectBase &) |
A Sound object represents a sound emitter, defined by its box and falloff, and list of samples to be played. Samples can be accessed through their iterator. A Sound object has a default falloff 10.0f, a default range of 100.0f, and default fade in/out of 0.0f.
QDemo2 production guide for guidance on how to build and import sound files in Q files.
|
|
Create a null Sound reference. |
|
|
Search the currently attached databases for a Sound with the given name. |
|
|
If the object referenced by
Reimplemented from Q::Geom. |
|
|
Return the type for this class. |
|
||||||||||||
|
Create a new sound named |
|
|
The effect override of this sound.
|
|
|
Return the time taken to go from silence up to playback volume when SoundInstance objects associated with this Sound start playing or enter the range of a Microphone while playing (e.g. looping sounds).
|
|
|
Return the time taken to go from playback volume to silence when SoundInstance objects associated with this Sound stop playing or exit the range of a Microphone while playing.
|
|
|
Return the falloff of the sound. This is the distance at which the volume is halved. |
|
|
Search the currently attached databases for a sound with the given name and return that object, if it exists. |
|
|
Return the range of the sound. This defines the box within which the sound is audible. |
|
|
Return an iterator that can be used to examine and edit the samples for a sound. |
|
|
Set the effect override for this sound.
|
|
||||||||||||
|
Set the fading times (in and out). The parameter
|
|
|
Set the falloff of the sound. This is the distance at which the volume is halved. |
|
|
Set the range of the sound. This defines the box in which the sound is audible. |
|
|
|
Qube Software Limited © 2000-2004
|
|