Drag[en]gine Game Engine
1.21
|
Microphone Class. More...
#include <deMicrophone.h>
Public Types | |
enum | eMicrophoneType { emtPoint , emtDirected } |
typedef deTObjectReference< deMicrophone > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deResource | |
typedef deTObjectReference< deResource > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Management | |
eMicrophoneType | GetType () const |
Type. More... | |
void | SetType (eMicrophoneType type) |
Set type. More... | |
const decDVector & | GetPosition () const |
Position. More... | |
void | SetPosition (const decDVector &position) |
Set position. More... | |
const decQuaternion & | GetOrientation () const |
Orientation. More... | |
void | SetOrientation (const decQuaternion &orientation) |
Set orientation. More... | |
const decVector & | GetVelocity () const |
Linear velocity in m/s. More... | |
void | SetVelocity (const decVector &velocity) |
Set velocity in m/s. More... | |
bool | GetMuted () const |
Microphone is muted. More... | |
void | SetMuted (bool muted) |
Set if microphone is muted. More... | |
float | GetVolume () const |
Volume. More... | |
void | SetVolume (float volume) |
Set volume. More... | |
const decLayerMask & | GetLayerMask () const |
Layer mask. More... | |
void | SetLayerMask (const decLayerMask &layerMask) |
Set layer mask. More... | |
float | GetSpeakerGain () const |
Gain to multiply all speakers with. More... | |
void | SetSpeakerGain (float gain) |
Set gain to multiply all speakers with. More... | |
Speakers | |
int | GetSpeakerCount () const |
Number of speakers. More... | |
deSpeaker * | GetRootSpeaker () const |
Root speaker or NULL if there are none. More... | |
void | AddSpeaker (deSpeaker *speaker) |
Add speaker. More... | |
void | RemoveSpeaker (deSpeaker *speaker) |
Remove speaker. More... | |
void | RemoveAllSpeakers () |
Remove all speakers. More... | |
System Peers | |
deBaseAudioMicrophone * | GetPeerAudio () const |
Audio system peer. More... | |
void | SetPeerAudio (deBaseAudioMicrophone *peer) |
Set audio system peer. More... | |
Public Member Functions inherited from deResource | |
deResourceManager * | GetResourceManager () const |
Resource manager or NULL if resource is leaking. More... | |
deEngine * | GetEngine () const |
Game engine object from resource manager. More... | |
deResource * | GetLLManagerPrev () const |
Previous resource in the resource manager linked list. More... | |
void | SetLLManagerPrev (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
deResource * | GetLLManagerNext () const |
Next resource in the resource manager linked list. More... | |
void | SetLLManagerNext (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
void | MarkLeaking () |
Marks the resource leaking. More... | |
deResource (deResourceManager *resourceManager) | |
Create resource. More... | |
Public Member Functions inherited from deObject | |
int | GetRefCount () const |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deObject () | |
Create object with reference count of 1. More... | |
Constructors and Destructors | |
deMicrophone (deMicrophoneManager *manager) | |
Create microphone. More... | |
virtual | ~deMicrophone () |
Clean up microphone. More... | |
Linked List | |
deWorld * | GetParentWorld () const |
Parent world or NULL. More... | |
void | SetParentWorld (deWorld *world) |
Set parent world or NULL. More... | |
deMicrophone * | GetLLWorldPrev () const |
Previous microphone in the parent world linked list. More... | |
void | SetLLWorldPrev (deMicrophone *microphone) |
Set next microphone in the parent world linked list. More... | |
deMicrophone * | GetLLWorldNext () const |
Next microphone in the parent world linked list. More... | |
void | SetLLWorldNext (deMicrophone *microphone) |
Set next microphone in the parent world linked list. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from deResource | |
virtual | ~deResource () |
Clean up resource. More... | |
Protected Member Functions inherited from deObject | |
virtual | ~deObject () |
Clean up object. More... | |
Microphone Class.
Defines a microphone object able to record sounds in a world. The recorded sound is audible at the users speakers afterwards. Only one microphone can be active at any time. A microphone only records sound emitted by speakers in the same world. This way you can switch between microphones without the need for changing a lot of properties each time. Microphones can be of point type recording sound from all directions or directed to record only sound coming from a major direction.
The layer masks affects which speakers the microphone can hear and which components affect sound propagation. Speakers assigned to the microphone are not affected by the layer mask.
Type holding strong reference.
deMicrophone::deMicrophone | ( | deMicrophoneManager * | manager | ) |
Create microphone.
|
protectedvirtual |
Clean up microphone.
void deMicrophone::AddSpeaker | ( | deSpeaker * | speaker | ) |
Add speaker.
deeInvalidParam | speaker is NULL. |
deeInvalidParam | speaker has a parent world. |
|
inline |
Layer mask.
|
inline |
Next microphone in the parent world linked list.
|
inline |
Previous microphone in the parent world linked list.
|
inline |
Microphone is muted.
|
inline |
Orientation.
|
inline |
Parent world or NULL.
|
inline |
Audio system peer.
|
inline |
Position.
|
inline |
Root speaker or NULL if there are none.
|
inline |
Number of speakers.
|
inline |
Gain to multiply all speakers with.
|
inline |
Type.
|
inline |
Linear velocity in m/s.
|
inline |
Volume.
void deMicrophone::RemoveAllSpeakers | ( | ) |
Remove all speakers.
void deMicrophone::RemoveSpeaker | ( | deSpeaker * | speaker | ) |
Remove speaker.
deeInvalidParam | speaker is NULL. |
deeInvalidParam | Parent world of speaker is not this world. |
void deMicrophone::SetLayerMask | ( | const decLayerMask & | layerMask | ) |
Set layer mask.
void deMicrophone::SetLLWorldNext | ( | deMicrophone * | microphone | ) |
Set next microphone in the parent world linked list.
void deMicrophone::SetLLWorldPrev | ( | deMicrophone * | microphone | ) |
Set next microphone in the parent world linked list.
void deMicrophone::SetMuted | ( | bool | muted | ) |
Set if microphone is muted.
void deMicrophone::SetOrientation | ( | const decQuaternion & | orientation | ) |
Set orientation.
void deMicrophone::SetParentWorld | ( | deWorld * | world | ) |
Set parent world or NULL.
void deMicrophone::SetPeerAudio | ( | deBaseAudioMicrophone * | peer | ) |
Set audio system peer.
void deMicrophone::SetPosition | ( | const decDVector & | position | ) |
Set position.
void deMicrophone::SetSpeakerGain | ( | float | gain | ) |
Set gain to multiply all speakers with.
void deMicrophone::SetType | ( | eMicrophoneType | type | ) |
Set type.
void deMicrophone::SetVelocity | ( | const decVector & | velocity | ) |
Set velocity in m/s.
void deMicrophone::SetVolume | ( | float | volume | ) |
Set volume.