Panda3D
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
AudioManager Class Reference
Inheritance diagram for AudioManager:
TypedReferenceCount TypedObject ReferenceCount

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)
 
- 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. 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...
 
- Public Member Functions inherited from ReferenceCount
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 Public Member Functions inherited from TypedReferenceCount
static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 

Public Attributes

Filename dls_pathname
 
- Public Attributes inherited from TypedObject
TypeHandle type
 Returns the TypeHandle representing this object's type. More...
 
- Public Attributes inherited from ReferenceCount
int ref_count
 The current reference count. More...
 

Member Enumeration Documentation

◆ SpeakerId

enum SpeakerId
Enumerator
SPK_none 
SPK_frontleft 
SPK_frontright 
SPK_center 
SPK_sub 
SPK_backleft 
SPK_backright 
SPK_sideleft 
SPK_sideright 
SPK_COUNT 

◆ SpeakerModeCategory

Enumerator
SPEAKERMODE_raw 

These enumerants line up one-to-one with the FMOD SPEAKERMODE enumerants.

SPEAKERMODE_mono 
SPEAKERMODE_stereo 
SPEAKERMODE_quad 
SPEAKERMODE_surround 
SPEAKERMODE_5point1 
SPEAKERMODE_7point1 
SPEAKERMODE_max 
SPEAKERMODE_COUNT 

◆ StreamMode

enum StreamMode
Enumerator
SM_heuristic 
SM_sample 
SM_stream 

Member Function Documentation

◆ audio3dGetDistanceFactor()

float audio3dGetDistanceFactor ( )

◆ audio3dGetDopplerFactor()

float audio3dGetDopplerFactor ( )

◆ audio3dGetDropOffFactor()

float audio3dGetDropOffFactor ( )

◆ audio3dSetDistanceFactor()

audio3dSetDistanceFactor ( float  factor)

◆ audio3dSetDopplerFactor()

audio3dSetDopplerFactor ( float  factor)

◆ audio3dSetDropOffFactor()

audio3dSetDropOffFactor ( float  factor)

◆ audio3dSetListenerAttributes()

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()

clearCache ( )

◆ configureFilters()

bool configureFilters ( FilterProperties  config)

◆ createAudioManager()

static AudioManager createAudioManager ( )
static

◆ getActive()

bool getActive ( )

◆ getCacheLimit()

unsigned int getCacheLimit ( )

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getConcurrentSoundLimit()

unsigned int getConcurrentSoundLimit ( )

◆ getDlsPathname()

static Filename getDlsPathname ( )
static

◆ getNullSound()

AudioSound getNullSound ( )

◆ getSound() [1/2]

AudioSound getSound ( const Filename  file_name,
bool  positional,
int  mode 
)

◆ getSound() [2/2]

AudioSound getSound ( MovieAudio  source,
bool  positional,
int  mode 
)

◆ getSpeakerSetup()

int getSpeakerSetup ( )

◆ getVolume()

float getVolume ( )

◆ isValid()

bool isValid ( )

◆ output()

output ( Ostream  out)

◆ reduceSoundsPlayingTo()

reduceSoundsPlayingTo ( unsigned int  count)

◆ setActive()

setActive ( bool  flag)

◆ setCacheLimit()

setCacheLimit ( unsigned int  count)

◆ setConcurrentSoundLimit()

setConcurrentSoundLimit ( unsigned int  limit)

◆ setSpeakerConfiguration()

setSpeakerConfiguration ( LVecBase3  speaker1,
LVecBase3  speaker2,
LVecBase3  speaker3,
LVecBase3  speaker4,
LVecBase3  speaker5,
LVecBase3  speaker6,
LVecBase3  speaker7,
LVecBase3  speaker8,
LVecBase3  speaker9 
)

◆ setSpeakerSetup()

setSpeakerSetup ( AudioManager::SpeakerModeCategory  cat)

◆ setVolume()

setVolume ( float  volume)

◆ shutdown()

shutdown ( )

◆ stopAllSounds()

stopAllSounds ( )

◆ uncacheSound()

uncacheSound ( const Filename  file_name)

◆ update()

update ( )

◆ write()

write ( Ostream  out)

Member Data Documentation

◆ dls_pathname

Filename dls_pathname