Share via


SPAUDIOSTATUS (SAPI 5.4)

Microsoft Speech API 5.4

SPAUDIOSTATUS

SPAUDIOSTATUS is used to indicate the state of an audio device.

  
    typedef struct SPAUDIOSTATUS
{
    long            cbFreeBuffSpace;
    ULONG           cbNonBlockingIO;
SPAUDIOSTATE    State;
    ULONGLONG       CurSeekPos;
    ULONGLONG       CurDevicePos;
    DWORD           dwAudioLevel;
    DWORD           dwReserved2;
} SPAUDIOSTATUS;

Members

  • cbFreeBuffSpace
    Size, in bytes, of free space for reading and/or writing in the audio object.
  • cbNonBlockingIO
    The amount of data which can be read from or written to a device without blocking.
  • State
    The state (of type SPAUDIOSTATE) of the audio device.
  • CurSeekPos
    The current seek position, in bytes, within the audio stream. This is the position in the stream where the next read or write will be performed.
  • CurDevicePos
    The current read position, in bytes, of the device. This is the position in the stream where the device is currently reading or writing. For readable streams, this value will always be greater than or equal to CurSeekPos. For writable streams, this value will always be less than or equal to CurSeekPos.
  • dwAudioLevel
    The field dwAudioLevel occupies the space previously called dwReserved1. dwAudioLevel provides the current input audio level. This is not the "volume" (that is, it is input, not output). This is the field used in the microphone meter in the speech control panel.
  • dwReserved2
    Reserved for future expansion.