blindstation.sound
index
/home/sable/test/blindstation-1.0.7/blindstation-1.0.7/test/blindstation/sound.py

Sound related classes

 
Modules
       
blindstation
weakref

 
Classes
       
blindstation.timer.Timer(__builtin__.object)
Source
__builtin__.object
Listener

 
class Listener(__builtin__.object)
    Listener represents the player and his position
 
  Methods defined here:
__init__(self)
get_gain(self, vol)
setOrientation(self, forward_x, forward_y, forward_z, up_x, up_y, up_z)
Set the orientation of the Listener according to the given vector
setPosition(self, x, y, z)
Set the position of the Listener to coordinates x, y, z
setVelocity(self, x, y, z)
Set the velocity of the Listener according to the vector (x, y, z)
set_gain(self, vol)
Set the global gain which affect the volume of all sounds -"
"A value of 0 means no sound. 1 means default vol. >1 means amplification

Properties defined here:
gain
gain which affect the volume of all sounds -"
                    "A value of 0 means no sound."
                    "1 means default volume."
                    ">1 means amplification
get = get_gain(self, vol)
set = set_gain(self, vol)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Listener' objects>
list of weak references to the object (if defined)

 
class Source(blindstation.timer.Timer)
    Source represents a position from which a sound can be played
 
 
Method resolution order:
Source
blindstation.timer.Timer
__builtin__.object

Methods defined here:
__del__(self)
Source destructor
__init__(self, scene, name)
A source must be initialised with its name
__internal_callback__(self, name)
empty(self)
Remove all the sounds from the sound queue
get_source_callback(self)
isPlaying(self)
Return true if the source is playing, false otherwise
play(self, sound=0)
Start playing sounds in the queue
queue(self, name)
Add the sound resource with the given name to the queue
of sounds to be played
setLooping(self, loop)
Source should loop its sounds
setPosition(self, x, y, z)
Move the source to a new position
at coordinates x, y, z
setSurround(self, state)
Source is surround if state = 1, not surround otherwise
setVelocity(self, x, y, z)
Change acceleration of this Source to a vector x, y, z
setVolume(self, vol)
Set the volume of this source
with volume a float between 0.0 and 1.0
set_source_callback(self, callback)
stop(self)
Stop sound from this source

Properties defined here:
source_callback
Callback to be called when all the sounds have been played
get = get_source_callback(self)
set = set_source_callback(self, callback)

Methods inherited from blindstation.timer.Timer:
get_timer_callback(self)
setTime(self, time)
Set the length of the timer and launch it
set_timer_callback(self, callback)

Properties inherited from blindstation.timer.Timer:
timer_callback
Callback to be called when the timer is triggered
get = get_timer_callback(self)
set = set_timer_callback(self, callback)

Data and other attributes inherited from blindstation.timer.Timer:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'Timer' objects>
list of weak references to the object (if defined)