Trees | Indices | Toggle frames |
---|
event.EventDispatcher --+ | Player --+ | ManagedSoundPlayer
A player which takes care of updating its own audio buffers.
This player will continue playing the sound until the sound is finished, even if the application discards the player early.
Only one source can be queued on the player; the player will be discarded when the source finishes.
on_eos()
The player has reached the end of the current source.
(Inherited from pyglet.media.Player)
|
__init__(self) | |
stop(self) | |
dispatch_event(self,
event_type,
*args)
Dispatch a single event to the attached handlers.
(Inherited from pyglet.event.EventDispatcher)
|
|
dispatch_events(self,
dt=None)
Dispatch any pending events and perform regular heartbeat functions
to maintain playback.
(Inherited from pyglet.media.Player)
|
|
event(self,
*args)
Function decorator for an event handler.
(Inherited from pyglet.event.EventDispatcher)
|
|
pyglet.image.Texture |
get_texture(self)
Get the texture for the current video frame.
(Inherited from pyglet.media.Player)
|
next(self)
Move immediately to the next queued source.
(Inherited from pyglet.media.Player)
|
|
pause(self)
Pause playback of the current source.
(Inherited from pyglet.media.Player)
|
|
play(self)
Begin playing the current source.
(Inherited from pyglet.media.Player)
|
|
pop_handlers(self)
Pop the top level of event handlers off the stack.
(Inherited from pyglet.event.EventDispatcher)
|
|
push_handlers(self,
*args,
**kwargs)
Push a level onto the top of the handler stack, then attach zero or
more event handlers.
(Inherited from pyglet.event.EventDispatcher)
|
|
queue(self,
source)
Queue the source on this player.
(Inherited from pyglet.media.Player)
|
|
register_event_type(cls,
name)
Register an event type with the dispatcher.
(Inherited from pyglet.event.EventDispatcher)
|
|
remove_handler(self,
name,
handler)
Remove a single event handler.
(Inherited from pyglet.event.EventDispatcher)
|
|
remove_handlers(self,
*args,
**kwargs)
Remove event handlers from the event stack.
(Inherited from pyglet.event.EventDispatcher)
|
|
seek(self,
timestamp)
Seek for playback to the indicated timestamp in seconds on the
current source.
(Inherited from pyglet.media.Player)
|
|
set_handler(self,
name,
handler)
Attach a single event handler.
(Inherited from pyglet.event.EventDispatcher)
|
|
set_handlers(self,
*args,
**kwargs)
Attach one or more event handlers to the top level of the handler
stack.
(Inherited from pyglet.event.EventDispatcher)
|
str |
eos_action
The fixed eos_action is EOS_STOP,
in which the player is discarded as soon as the source has
finished.
|
float |
cone_inner_angle
The interior angle of the inner cone.
(Inherited from pyglet.media.Player)
|
3-tuple of float |
cone_orientation
The direction of the sound in 3D space.
(Inherited from pyglet.media.Player)
|
float |
cone_outer_angle
The interior angle of the outer cone.
(Inherited from pyglet.media.Player)
|
float |
cone_outer_gain
The gain applied outside the cone.
(Inherited from pyglet.media.Player)
|
float |
max_distance
The distance at which no further attenuation
is applied.
(Inherited from pyglet.media.Player)
|
float |
min_distance
The distance beyond which the sound volume
drops by half, and within which no attenuation is applied.
(Inherited from pyglet.media.Player)
|
float |
pitch
The pitch shift to apply to the sound.
(Inherited from pyglet.media.Player)
|
bool |
playing
Determine if the player state is playing.
(Inherited from pyglet.media.Player)
|
3-tuple of float |
position
The position of the sound in 3D space.
(Inherited from pyglet.media.Player)
|
Source |
source
Return the current source.
(Inherited from pyglet.media.Player)
|
pyglet.image.Texture |
texture
The video texture.
(Inherited from pyglet.media.Player)
|
float |
time
Retrieve the current playback time of the current
source.
(Inherited from pyglet.media.Player)
|
float |
volume
The volume level of sound playback.
(Inherited from pyglet.media.Player)
|
event_types =
(Inherited from pyglet.media.Player)
|
EOS_STOP =
|
|
EOS_LOOP =
(Inherited from pyglet.media.Player)
|
|
EOS_NEXT =
(Inherited from pyglet.media.Player)
|
|
EOS_PAUSE =
(Inherited from pyglet.media.Player)
|
The fixed eos_action is EOS_STOP, in which the player is discarded as soon as the source has finished.
Read-only.
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Thu Dec 31 17:58:19 2009 | http://epydoc.sourceforge.net |