Public Member Functions | |
virtual void | save (AudioStreamProxy &audio, const char *path, ReturnCode::Type &returnCode)=0 |
Static Public Member Functions | |
static UAPI_EXPORT MediaFileWriterProxy | create (MediaFileWriterListenerProxy &listener, ReturnCode::Type &returnCode) |
Protected Member Functions | |
MediaFileWriter () | |
virtual | ~MediaFileWriter () |
Friends | |
class | MediaFileWriterProxy |
android.speech.recognition.MediaFileWriter.MediaFileWriter | ( | ) | [protected] |
Prevent construction.
virtual android.speech.recognition.MediaFileWriter.~MediaFileWriter | ( | ) | [protected, virtual] |
Prevent destruction.
static UAPI_EXPORT MediaFileWriterProxy android.speech.recognition.MediaFileWriter.create | ( | MediaFileWriterListenerProxy & | listener, | |
ReturnCode::Type & | returnCode | |||
) | [static] |
Creates an instace of this class.
listener | listens for MediaFileWriter events | |
logger | the logger | |
returnCode | the return code |
virtual void android.speech.recognition.MediaFileWriter.save | ( | AudioStreamProxy & | audio, | |
const char * | path, | |||
ReturnCode::Type & | returnCode | |||
) | [pure virtual] |
Saves audio to a file.
audio | the audio to save | |
filename | the path to | |
returnCode | ILLEGAL_ARGUMENT if 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. |