Partager via


SPAUDIOSTATE

This enumeration defines audio input and output states. It is used directly by the ISpAudio::SetState method. For more information, seethe SPAUDIOSTATUS structure.

typedef enum _SPAUDIOSTATE{
  SPAS_CLOSED,
  SPAS_STOP,
  SPAS_PAUSE,
  SPAS_RUN
} SPAUDIOSTATE;

Elements

  • SPAS_CLOSED
    Stop and close audio. For multimedia audio input devices, for example, sound cards, the device will be released. Release allows the device to be opened by other processes and potentially made unavailable to SAPI.
  • SPAS_STOP
    Stop audio. For multimedia audio input devices, the audio device will not be closed. This guarantees that SAPI can restart the device without an intervening process opening it.
  • SPAS_PAUSE
    Pause audio. Staying in this state for too long will result in audio loss.
  • SPAS_RUN
    Enable audio.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.

See Also

SAPI Enumerations

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.