Scroll to navigation

SDL_HINT_AUDIO_DUCK_OTHERS(3) SDL3 FUNCTIONS SDL_HINT_AUDIO_DUCK_OTHERS(3)

NAME

SDL_HINT_AUDIO_DUCK_OTHERS - Specify whether this audio stream should duck other audio.

SYNOPSIS

#include <SDL3/SDL_hints.h>
#define SDL_HINT_AUDIO_DUCK_OTHERS "SDL_AUDIO_DUCK_OTHERS"

DESCRIPTION

On Apple platforms, this hint controls whether other audio streams are ducked (reduced in volume) while your application is in the foreground.

The variable can be set to the following values:

• "0": Other audio will not be ducked. (default)

• "1": Other audio will be ducked.

This hint should be set before an audio device is opened.

AVAILABILITY

This hint is available since SDL 3.6.0.

SDL 3.5.0 Simple Directmedia Layer