| Trees | Indices | Help |
|---|
|
|
object --+
|
WavePlayer
Synchronously play a stream of audio. To use, construct an instance and feed it waveform audio using feed.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
_global_waveout_lock = threading.RLock()
|
|||
|
|||
|
Inherited from |
|||
|
|||
Constructor.
Note:
If |
Open the output device. This will be called automatically when required. It is not an error if the output device is already open. |
Feed a chunk of audio data to be played. This is normally synchronous. However, synchronisation occurs on the previous chunk, rather than the current chunk; i.e. calling this while no audio is playing will begin playing the chunk but return immediately. This allows for uninterrupted playback as long as a new chunk is fed before the previous chunk has finished playing.
|
Synchronise with playback. This method blocks until the previously fed chunk of audio has finished playing. It is called automatically by feed, so usually need not be called directly by the user. |
Pause or unpause playback.
|
Indicate that this player is now idle; i.e. the current continuous
segment of audio is complete. This will first call sync to
synchronise with playback. If |
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Nov 18 17:45:58 2011 | http://epydoc.sourceforge.net |