wiki.icculus.org
[ front page | index | search | recent changes | git repo | offline html ]
(This function is part of SDL_sound, a separate library from SDL.)

Sound_Init

Initialize SDL_sound.

Header File

Defined in <SDL3_sound/SDL_sound.h>

Syntax

int Sound_Init(void);

Return Value

(int) Returns nonzero on success, zero on error. Specifics of the error can be gleaned from Sound_GetError().

Remarks

This must be called before any other SDL_sound function (except perhaps Sound_Version()). You should call SDL_Init() before calling this. Sound_Init() will attempt to call SDL_Init(SDL_INIT_AUDIO), just in case. This is a safe behaviour, but it may not configure SDL to your liking by itself.

Thread Safety

This call is not thread-safe.

Version

This function is available since SDL_sound 1.0.0.

See Also


CategoryAPI, CategoryAPIFunction, CategorySDLSound


[ 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.