audioDucking module
- audioDucking._isDebug()
- class audioDucking.AutoEvent
Bases:
c_void_p
- class audioDucking.AudioDuckingMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
DisplayStringIntEnum
- NONE = 0
- OUTPUTTING = 1
- ALWAYS = 2
- property _displayStringLabels: Dict[IntEnum, str]
Specify a dictionary which takes members of the Enum and returns the translated display string.
- class audioDucking.ANRUSDucking(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
IntEnum
- AUDIO_ACTIVE = 4
- AUDIO_ACTIVE_NODUCK = 8
- audioDucking._setDuckingState(switch)
- audioDucking._ensureDucked()
- audioDucking._unensureDucked(delay=True)
- audioDucking.setAudioDuckingMode(mode)
- audioDucking.initialize()
- audioDucking.isAudioDuckingSupported()
- audioDucking.handlePostConfigProfileSwitch()
- class audioDucking.AudioDucker
Bases:
object
Create one of these objects to manage ducking of background audio. Use the enable and disable methods on this object to denote when you require audio to be ducked. If this object is deleted while ducking is still enabled, the object will automatically disable ducking first.
- enable()
Tells NVDA that you require that background audio be ducked from now until you call disable. This method may block for a short time while background audio ducks to a suitable level. It is safe to call this method more than once. @returns: True if ducking was enabled,
false if ducking was subsiquently disabled while waiting for the background audio to drop.
- disable()
Tells NVDA that you no longer require audio to be ducked. while other AudioDucker objects are still enabled, audio will remain ducked. It is safe to call this method more than once.