Panda3D
|
#include <pandadoc.hpp>
Public Types | |
enum | SpeakerId { SPK_none = 0 , SPK_frontleft = 1 , SPK_frontright = 2 , SPK_center = 3 , SPK_sub = 4 , SPK_backleft = 5 , SPK_backright = 6 , SPK_sideleft = 7 , SPK_sideright = 8 , SPK_COUNT = 9 } |
enum | SpeakerModeCategory { SPEAKERMODE_raw = 0 , SPEAKERMODE_mono = 1 , SPEAKERMODE_stereo = 2 , SPEAKERMODE_quad = 3 , SPEAKERMODE_surround = 4 , SPEAKERMODE_5point1 = 5 , SPEAKERMODE_7point1 = 6 , SPEAKERMODE_max = 7 , SPEAKERMODE_COUNT = 8 } |
enum | StreamMode { SM_heuristic = 0 , SM_sample = 1 , SM_stream = 2 } |
Public Member Functions | |
float | audio3dGetDistanceFactor () |
float | audio3dGetDopplerFactor () |
float | audio3dGetDropOffFactor () |
audio3dSetDistanceFactor (float factor) | |
audio3dSetDopplerFactor (float factor) | |
audio3dSetDropOffFactor (float factor) | |
audio3dSetListenerAttributes (float px, float py, float pz, float vx, float vy, float vz, float fx, float fy, float fz, float ux, float uy, float uz) | |
clearCache () | |
bool | configureFilters (FilterProperties config) |
bool | getActive () |
unsigned int | getCacheLimit () |
unsigned int | getConcurrentSoundLimit () |
AudioSound | getNullSound () |
AudioSound | getSound (const Filename file_name, bool positional, int mode) |
AudioSound | getSound (MovieAudio source, bool positional, int mode) |
int | getSpeakerSetup () |
float | getVolume () |
bool | isValid () |
output (Ostream out) | |
reduceSoundsPlayingTo (unsigned int count) | |
setActive (bool flag) | |
setCacheLimit (unsigned int count) | |
setConcurrentSoundLimit (unsigned int limit) | |
setSpeakerConfiguration (LVecBase3 speaker1, LVecBase3 speaker2, LVecBase3 speaker3, LVecBase3 speaker4, LVecBase3 speaker5, LVecBase3 speaker6, LVecBase3 speaker7, LVecBase3 speaker8, LVecBase3 speaker9) | |
setSpeakerSetup (AudioManager::SpeakerModeCategory cat) | |
setVolume (float volume) | |
shutdown () | |
stopAllSounds () | |
uncacheSound (const Filename file_name) | |
update () | |
write (Ostream out) | |
![]() | |
TypeHandle | getType () |
int | getTypeIndex () |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More... | |
bool | isExactType (TypeHandle handle) |
Returns true if the current object is the indicated type exactly. More... | |
bool | isOfType (TypeHandle handle) |
Returns true if the current object is or derives from the indicated type. More... | |
![]() | |
int | getRefCount () |
Returns the current reference count. More... | |
ref () | |
Explicitly increments the reference count. More... | |
bool | testRefCountIntegrity () |
Does some easy checks to make sure that the reference count isn't completely bogus. More... | |
bool | testRefCountNonzero () |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More... | |
bool | unref () |
Explicitly decrements the reference count. More... | |
Static Public Member Functions | |
static AudioManager | createAudioManager () |
static TypeHandle | getClassType () |
static Filename | getDlsPathname () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
Public Attributes | |
Filename | dls_pathname |
![]() | |
TypeHandle | type |
Returns the TypeHandle representing this object's type. More... | |
![]() | |
int | ref_count |
The current reference count. More... | |
enum SpeakerId |
enum SpeakerModeCategory |
enum StreamMode |
float audio3dGetDistanceFactor | ( | ) |
float audio3dGetDopplerFactor | ( | ) |
float audio3dGetDropOffFactor | ( | ) |
audio3dSetDistanceFactor | ( | float | factor | ) |
audio3dSetDopplerFactor | ( | float | factor | ) |
audio3dSetDropOffFactor | ( | float | factor | ) |
audio3dSetListenerAttributes | ( | float | px, |
float | py, | ||
float | pz, | ||
float | vx, | ||
float | vy, | ||
float | vz, | ||
float | fx, | ||
float | fy, | ||
float | fz, | ||
float | ux, | ||
float | uy, | ||
float | uz | ||
) |
clearCache | ( | ) |
bool configureFilters | ( | FilterProperties | config | ) |
|
static |
bool getActive | ( | ) |
unsigned int getCacheLimit | ( | ) |
|
static |
unsigned int getConcurrentSoundLimit | ( | ) |
|
static |
AudioSound getNullSound | ( | ) |
AudioSound getSound | ( | const Filename | file_name, |
bool | positional, | ||
int | mode | ||
) |
AudioSound getSound | ( | MovieAudio | source, |
bool | positional, | ||
int | mode | ||
) |
int getSpeakerSetup | ( | ) |
float getVolume | ( | ) |
bool isValid | ( | ) |
output | ( | Ostream | out | ) |
reduceSoundsPlayingTo | ( | unsigned int | count | ) |
setActive | ( | bool | flag | ) |
setCacheLimit | ( | unsigned int | count | ) |
setConcurrentSoundLimit | ( | unsigned int | limit | ) |
setSpeakerConfiguration | ( | LVecBase3 | speaker1, |
LVecBase3 | speaker2, | ||
LVecBase3 | speaker3, | ||
LVecBase3 | speaker4, | ||
LVecBase3 | speaker5, | ||
LVecBase3 | speaker6, | ||
LVecBase3 | speaker7, | ||
LVecBase3 | speaker8, | ||
LVecBase3 | speaker9 | ||
) |
setSpeakerSetup | ( | AudioManager::SpeakerModeCategory | cat | ) |
setVolume | ( | float | volume | ) |
shutdown | ( | ) |
stopAllSounds | ( | ) |
uncacheSound | ( | const Filename | file_name | ) |
update | ( | ) |
write | ( | Ostream | out | ) |
Filename dls_pathname |