| Trees | Indices | Help |
|---|
|
|
object --+
|
threading._Verbose --+
|
threading.Thread --+
|
object --+ |
| |
UIElement.UIE --+ |
| |
Base.AEOutput --+
|
AudioThreadProxy
Buffers calls to methods on a AEOutput.Audio device in a secondary thread and executes them some time later when that thread runs.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
| list of string |
|
||
|
|||
|
|||
|
|||
| AEState |
|
||
| list of AEOutput.Style |
|
||
| AEOutput.Style |
|
||
|
|||
| AudioThreadProxy |
|
||
| string |
|
||
| object |
|
||
| boolean |
|
||
| 3-tuple of lists of string, POR, AEOutput.Style |
|
||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
| boolean |
alive Is the thread running or not? |
||
| Queue.Queue |
data_buffer Buffer of commands to be sent to the output device |
||
| AEOutput.Audio |
device Device on which to invoke send* methods |
||
| threading.Event |
init_event Event used to block non-threaded calls to the device until the device has been initialized in the context of the running thread. |
||
| boolean |
just_stopped Flag indicating that the last written command was a stop. |
||
| threading.Sempahore |
lock Semaphore used to ensure no commands are buffered while the buffer is being reset after sending a stop |
||
| boolean |
want_stop Flag indicating a stop is requested |
||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Initializes the parent class and stores the device reference. Creates a queue that will buffer commands to the speech device. Creates flags used for indicating whether a stop is requested or has been requested recently. Creates a semaphore used to ensure that no commands can be added to the buffer while it is being reset by a stop command.
|
Called after the instance is created to start the device running. The device's init method is called in the context of the running thread's run method before the thread enters its loop.
|
Gets the capabilities of the proxied device. This method is called in the context of the caller, not the running thread.
|
Called after the init method by the DeviceManager to ensure that the device is functioning before time is spent unserializing its style data. Calls the init method on the default style object and provides it with a reference to this initialized device. Then tries to load the persisted setting values from disk. If that fails, the DeviceManager will try to call createDistinctStyles instead. This method is called in the context of the caller, not the running thread. It blocks until the init_event is set indicating the device has been initialized in the second thread.
|
Persists styles to disk. Called after the close method by the DeviceManager to ensure the device is properly shutdown before serializing its data. This method is called in the context of the caller, not the running thread.
|
Stores the style object under the given key. The style object should be one previously generated by this device (e.g. using createDistinctStyles) but it is not an enforced requirement. Always makes the style clean before storing it. This method is called in the context of the caller, not the running thread.
|
Gets the style object stored under the given key. If the key is unknown, returns an empty flyweight backed by the default style and stores the new style in styles. This method is called in the context of the caller, not the running thread.
|
Creates up to the given number of styles for this device. This method is called in the context of the caller, not the running thread. It blocks until the init_event is set indicating the device has been initialized in the second thread.
|
Creates up to the given number of styles for this device. This method is called in the context of the caller, not the running thread. It blocks until the init_event is set indicating the device has been initialized in the second thread.
|
Stops the running thread. Puts a null callable in the queue to wake the thread if it is sleeping.
|
Returns this object as the proxy for itself because a thread proxying for another thread proxying for a device is not supported.
|
Gives the user displayable (localized) name for this output device. Relevant version and device status should be included. This method is called in the context of the caller, not the running thread.
|
Buffers methods to call for known commands in the context of the thread.
|
Indicates whether the device is active (giving output) or not.
|
Parses the string using the implementation provided by the proxied device. This method is called in the context of the caller, not the running thread.
|
Buffers any non-stop command in the queue and returns immediately. Sets the want_stop flag for a stop command if neither want_stop nor just_stopped is set. Blocks on entry if the thread is busy clearing out the buffer in response to a previous stop command. Leaves the lock set if a new stop command is buffered. It will be unset when the command is processed.
|
Runs the thread until alive is not longer True. Sleeps until methods and arguments to be applied are put in the data_buffer. Wakes up and invokes all buffered methods and arguments. Initializes the device before entering the loop and closes it after leaving the loop.
|
|
|||
just_stoppedFlag indicating that the last written command was a stop. Used to avoid unnecessary stops
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Mon Jun 4 15:33:18 2007 | http://epydoc.sourceforge.net |