OpenSpeech Browser

Getting Started
Architecture Description
Integration Guide

Copyright (c) 1998-2001 SpeechWorks International, Inc. All Rights Reserved.



typedef VXIasCallbackResult VXIasEventListener

( struct VXIasInterface* pThis,
  const VXIulong eventType,
  const VXIasEventData* eventData,
  const VXIptr userData )

Signature for the event handler called to report Audio Source events, as registered via RegisterEventListener( ).

Documentation

Signature for the event handler called to report Audio Source events, as registered via RegisterEventListener( ).

As a flow control mechanism, this may return VXIasCb_RESULT_PAUSE_AUDIO to request the Audio Source to suspend the delivery of audio packets, instead buffering the audio. Once the consumer is ready for more audio, the audio packet delivery is resumed by calling TriggerResume( ). However, this Audio Source functionality is optional, and even Audio Source implementations that support this may have limited buffer sizes and may thus return an AS_EVENT_OVERFLOW error (throwing out audio warning) if the stream is paused for long.

Parameters:
pThis - [IN] Audio source reporting the event
eventType - [IN] Event type that occurred
eventData - [IN] VXIasEventDataStatus structure that reports the details of the event, where the structure and its members are only valid for the duration of the event listener call (audio must be deep copied if required for a longer time period).
userData - [IN] User data for the listener, as specified when registering the listener.
Returns:
VXIasCb_RESULT_SUCCESS on success
VXIasCb_RESULT_PAUSE_AUDIO to request the Audio Source to pause audio delivery (may get ignored, however, as that functionality is optional)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.