|
Public Member Functions |
| | gzAudioSource (const gzString &name=GZ_EMPTY_STRING) |
| virtual | ~gzAudioSource () |
| | GZ_DECLARE_TYPE_INTERFACE_EXPORT (1) |
| virtual gzVoid | updateNode () |
| virtual gzReference * | clone () const |
| gzBool | addData (gzAudioSourceFormat format, gzVoid *data, gzULong samples, gzULong frequency, gzUByte stride=0) |
| gzBool | play (const gzFloat &offset=0.0) |
| gzBool | pause () |
| gzBool | resume () |
| gzBool | stop () |
| gzBool | loop (gzBool on=FALSE) |
| gzAudioSourceState | getAudioSourceState () |
| gzBool | setPosition (const gzVec3 &position, gzBool immediate=FALSE) |
| gzBool | setOrientation (gzReal heading, gzReal pitch, gzReal roll, gzBool immediate=FALSE) |
| gzBool | setDirection (const gzVec3 &targetvector, gzReal roll, const gzVec3 &up=gzVec3(0, 1, 0), gzBool immediate=FALSE) |
| gzVoid | cleanBuffers () |
| gzInt | getPendingBuffers () |
| | Returns -1 for error, else number of buffers.
|
| virtual gzVoid | preTraverseAction (gzTraverseAction *actionclass, gzContext *context) |
Static Public Member Functions |
| static gzBool | play (const gzRefList< gzAudioSource > &sources, const gzFloat &offset=0.0) |
| static gzBool | pause (const gzRefList< gzAudioSource > &sources) |
| static gzBool | resume (const gzRefList< gzAudioSource > &sources) |
| static gzBool | stop (const gzRefList< gzAudioSource > &sources) |
Protected Member Functions |
| gzUInt | init () |
Protected Attributes |
| gzUInt | m_sourceID |
| gzVec3 | m_position |
| gzVec3 | m_orientation |
| gzDynamicArray< gzUByte > | m_buffer |