Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

SPAUDIOSTATUS

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

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>typedef struct SPAUDIOSTATUS</strong> <strong>{</strong> <strong>long</strong> <em>cbFreeBuffSpace</em>; <strong>ULONG</strong> <em>cbNonBlockingIO</em>; <a runat="server" href="jj127454(v=msdn.10).md"><strong>SPAUDIOSTATE</strong></a> <em>State</em>; <strong>ULONGLONG</strong> <em>CurSeekPos</em>; <strong>ULONGLONG</strong> <em>CurDevicePos</em>; <strong>DWORD</strong> <em>dwAudioLevel</em>; <strong>DWORD</strong> <em>dwReserved2</em>; <strong>} SPAUDIOSTATUS;</strong> </pre>

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).
  • dwReserved2
    Reserved for future expansion.