SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_GetAudioDeviceProperties

Get the properties associated with an audio device.

Header File

Defined in <SDL3/SDL_audio.h>

Syntax

SDL_PropertiesID SDL_GetAudioDeviceProperties(SDL_AudioDeviceID devid);

Function Parameters

SDL_AudioDeviceID devid the audio device instance id to query.

Return Value

(SDL_PropertiesID) Returns a valid property ID on success or 0 on failure; call SDL_GetError() for more information.

Remarks

This can be used with both logical and physical devices. Note that while apps can hang any data they want here, physical device IDs are global; it would be better to assign data to one's own logical device so it doesn't interfere with other parts of the program that might be using the same physical device ID.

Properties provided by SDL for physical devices will also be made available on their associated logical devices, unless otherwise noted.

The application can hang any data it wants here, but the following properties are understood by SDL:

Thread Safety

It is safe to call this function from any thread.

Version

This function is available since SDL 3.6.0.


CategoryAPI, CategoryAPIFunction, CategoryAudio


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.