|
bool | configureFilters (FilterProperties config) |
|
float | get3dMaxDistance () |
|
float | get3dMinDistance () |
|
bool | getActive () |
|
float | getBalance () |
|
str | getFinishedEvent () |
|
bool | getLoop () |
|
unsigned long int | getLoopCount () |
|
str | getName () |
|
float | getPlayRate () |
|
int | getPriority () |
|
float | getSpeakerLevel (int index) |
|
float | getSpeakerMix (int speaker) |
|
float | getTime () |
|
float | getVolume () |
|
float | length () |
|
| output (Ostream out) |
|
| play () |
|
| set3dAttributes (float px, float py, float pz, float vx, float vy, float vz) |
|
| set3dMaxDistance (float dist) |
|
| set3dMinDistance (float dist) |
|
| setActive (bool flag) |
|
| setBalance (float balance_right) |
|
| setFinishedEvent (str event) |
|
| setLoop (bool loop) |
|
| setLoopCount (unsigned long int loop_count) |
|
| setPlayRate (float play_rate) |
|
| setPriority (int priority) |
|
| setSpeakerLevels (float level1, float level2, float level3, float level4, float level5, float level6, float level7, float level8, float level9) |
|
| setSpeakerMix (float frontleft, float frontright, float center, float sub, float backleft, float backright, float sideleft, float sideright) |
|
| setTime (float start_time) |
| Control time position within the sound, in seconds.
|
|
| setVolume (float volume) |
|
AudioSound::SoundStatus | status () |
|
| stop () |
|
| write (Ostream out) |
|
Public Member Functions inherited from TypedObject |
TypeHandle | getType () |
|
int | getTypeIndex () |
| Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
|
|
bool | isExactType (TypeHandle handle) |
| Returns true if the current object is the indicated type exactly.
|
|
bool | isOfType (TypeHandle handle) |
| Returns true if the current object is or derives from the indicated type.
|
|
Public Member Functions inherited from ReferenceCount |
int | getRefCount () |
| Returns the current reference count.
|
|
| ref () |
| Explicitly increments the reference count.
|
|
bool | testRefCountIntegrity () |
| Does some easy checks to make sure that the reference count isn't completely bogus.
|
|
bool | testRefCountNonzero () |
| Does some easy checks to make sure that the reference count isn't zero, or completely bogus.
|
|
bool | unref () |
| Explicitly decrements the reference count.
|
|
setTime |
( |
float | start_time | ) |
|
Control time position within the sound, in seconds.
This is similar (in concept) to the seek position within a file. The value starts at 0.0 (the default) and ends at the value given by the length() method.
The current time position will not change while the sound is playing; you must call play() again to effect the change. To play the same sound from a time offset a second time, explicitly set the time position again. When looping, the second and later loops will start from the beginning of the sound.
If a sound is playing, calling get_time() repeatedly will return different results over time. e.g.
PN_stdfloat percent_complete = s.get_time() / s.length();