.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL's wiki page for SDL_PlayAudioDevice: .\" https://wiki.libsdl.org/SDL_PlayAudioDevice .\" Generated with SDL/build-scripts/wikiheaders.pl .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20SDL_PlayAudioDevice .\" SDL can be found at https://libsdl.org/ .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH SDL_PlayAudioDevice 3 "SDL 3.0.0" "SDL" "SDL3 FUNCTIONS" .SH NAME SDL_PlayAudioDevice \- Use this function to play audio on a specified device\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3/SDL.h\(dq .PP .BI "int SDL_PlayAudioDevice(SDL_AudioDeviceID dev); .fi .SH DESCRIPTION Newly-opened audio devices start in the paused state, so you must call this function after opening the specified audio device to start playing sound\[char46] This allows you to safely initialize data for your callback function after opening the audio device\[char46] Silence will be written to the audio device while paused, and the audio callback is guaranteed to not be called\[char46] Pausing one device does not prevent other unpaused devices from running their callbacks\[char46] .SH FUNCTION PARAMETERS .TP .I dev a device opened by .BR SDL_OpenAudioDevice () .SH RETURN VALUE Returns 0 on success or a negative error code on failure; call .BR SDL_GetError () for more information\[char46] .SH AVAILABILITY This function is available since SDL 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR SDL_LockAudioDevice (3), .BR SDL_PauseAudioDevice (3)