Public Member Functions | |
virtual void | start (AudioStreamProxy &audio, ReturnCode::Type &returnCode)=0 |
virtual void | stop (ReturnCode::Type &returnCode)=0 |
virtual void | setCodec (Codec::Type playbackCodec, ReturnCode::Type &returnCode)=0 |
virtual void | setListener (DeviceSpeakerListenerProxy &listener, ReturnCode::Type &returnCode)=0 |
Static Public Member Functions | |
static UAPI_EXPORT DeviceSpeakerProxy | getInstance (ReturnCode::Type &returnCode) |
Protected Member Functions | |
DeviceSpeaker () | |
virtual | ~DeviceSpeaker () |
Static Protected Attributes | |
static DeviceSpeaker * | instance |
Friends | |
class | DeviceSpeakerProxy |
android.speech.recognition.DeviceSpeaker.DeviceSpeaker | ( | ) | [protected] |
Prevent construction.
virtual android.speech.recognition.DeviceSpeaker.~DeviceSpeaker | ( | ) | [protected, virtual] |
Prevent destruction.
static UAPI_EXPORT DeviceSpeakerProxy android.speech.recognition.DeviceSpeaker.getInstance | ( | ReturnCode::Type & | returnCode | ) | [static] |
Returns the device speaker instance.
returnCode | the return code. |
virtual void android.speech.recognition.DeviceSpeaker.start | ( | AudioStreamProxy & | audio, | |
ReturnCode::Type & | returnCode | |||
) | [pure virtual] |
Start audio playback.
audio | the audio to play | |
returnCode | INVALID_STATE if the component is already stated. ILLEGAL_ARGUMENT if the audio object is invalid. AUDIO_ALREADY_IN_USE if the audio is already in use by another component. END_OF_STREAM if the end of the audio stream has been reached. |
virtual void android.speech.recognition.DeviceSpeaker.stop | ( | ReturnCode::Type & | returnCode | ) | [pure virtual] |
Stops audio playback.
returnCode | the return code |
virtual void android.speech.recognition.DeviceSpeaker.setCodec | ( | Codec::Type | playbackCodec, | |
ReturnCode::Type & | returnCode | |||
) | [pure virtual] |
Sets the playback codec. This must be called before start is called.
playbackCodec | the codec to use for the playback operation. | |
returnCode | the return code. |
virtual void android.speech.recognition.DeviceSpeaker.setListener | ( | DeviceSpeakerListenerProxy & | listener, | |
ReturnCode::Type & | returnCode | |||
) | [pure virtual] |
Sets the microphone listener.
listener | the device speaker listener. | |
returnCode | the return code. |
DeviceSpeaker* android.speech.recognition.DeviceSpeaker.instance [static, protected] |
Singleton instance.