Results 1 - 19 of 19 results out of about 6838 pages. (2.73 seconds)
- SDL_OpenAudioDevice . . . 11 matches
- ...
= SDL_OpenAudioDevice =
Use this function to open a specific audio device.
<<TableOfContents()>>
== Syntax ==
{{{#!highlight cpp
SDL_AudioDeviceID SDL_OpenAudioDevice(const ch...
- SDL_OpenAudio . . . 7 matches
- ...
= SDL_OpenAudio =
This function is a legacy means of opening the audio device. New programs might want to use [[SDL_OpenAudioDevice]]() instead.
<<TableOfContents()>>
== Synta...
- SDL_AudioSpec . . . 6 matches
- ...096;
want.callback = MyAudioCallback; // you wrote this function elsewhere.
dev = SDL_OpenAudioDevice(NULL, 0, &want, &have, SDL_AUDIO_ALLOW_FORMAT_CHANGE);
}}}
== Remarks ==
Th...
- SDL_CloseAudioDevice . . . 4 matches
- ...}
== Function Parameters ==
||'''dev'''||an audio device previously opened with [[SDL_OpenAudioDevice]]()||
== Code Examples ==
{{{#!highlight cpp
extern SDL_AudioSpec want;
SDL...
- SDL_GetNumAudioDevices . . . 3 matches
- ...able on the Internet, but it will still allow a specific host to be specified in [[SDL_OpenAudioDevice]]().
In many common cases, when this function returns a value <= 0, it can ...
- SDL_CloseAudio . . . 3 matches
- ...o(void)
}}}
== Code Examples ==
{{{#!highlight cpp
extern SDL_AudioSpec want;
if (SDL_OpenAudio(&want, NULL) == 0) {
SDL_PauseAudio(0);
SDL_Delay(5000); // let audio cal...
- SDL_GetAudioStatus . . . 2 matches
- ...SDL_AudioSpec desired;
extern SDL_AudioSpec obtained;
// device starts paused
if (SDL_OpenAudio(&desired, &obtained) == 0) {
printStatus(); // prints "paused"
SDL_Paus...
- SGRemarks . . . 1 match
- ... side of the text for monospace.<<BR>>{{{`member`}}} = `member`||
||''Example'': [[SDL_OpenAudio]]()||
~-[[#ToC|Return to Table of Contents]]-~
=== Referencing Structure Data Fi...
- SGFunctions . . . 1 match
- ...ther logical order (such as numerical).||
||''Example'': [[SDL_HapticOpened]](), [[SDL_OpenAudio]]()||
||<( |4 30%>''If'' the function __does not have a failure state__||''Note'':...
- SDL_UnlockAudio . . . 1 match
- ...ght cpp
SDL_UnlockAudioDevice(1);
}}}
and is only useful if you used the legacy [[SDL_OpenAudio]]() function.
== Related Functions ==
.[[SDL_LockAudio]]
.[[SDL_UnlockAudioDevi...
- SDL_PauseAudioDevice . . . 1 match
- ... pause_on)
}}}
== Function Parameters ==
||'''dev'''||a device opened by [[SDL_OpenAudioDevice]]()||
||'''pause_on'''||non-zero to pause, 0 to unpause||
== Code Examples ...
- SDL_PauseAudio . . . 1 match
- ...DL_PauseAudioDevice(1, pause_on);
}}}
and is only useful if you used the legacy [[SDL_OpenAudio]]() function.
== Related Functions ==
.[[SDL_GetAudioStatus]]
.[[SDL_PauseAudio...
- SDL_MixAudio . . . 1 match
- ...}
where '''format''' is the obtained format of the audio device from the legacy [[SDL_OpenAudio]]() function.
== Related Functions ==
.[[SDL_MixAudioFormat]]
----
[[CategoryAP...
- SDL_LockAudioDevice . . . 1 match
- ...manipulated by these functions protects the audio callback function specified in [[SDL_OpenAudioDevice]](). During a [[SDL_LockAudioDevice]]()/[[SDL_UnlockAudioDevice]]() pair, y...
- SDL_LockAudio . . . 1 match
- ...light cpp
SDL_LockAudioDevice(1);
}}}
and is only useful if you used the legacy [[SDL_OpenAudio]]() function.
== Related Functions ==
.[[SDL_LockAudioDevice]]
.[[SDL_UnlockAud...
- SDL_GetAudioDeviceStatus . . . 1 match
- ...tion Parameters ==
||'''dev'''||the ID of an audio device previously opened with [[SDL_OpenAudioDevice]]()||
== Return Value ==
Returns the [[SDL_AudioStatus]] of the specified a...
- CategoryAudio . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
= Audio Device Management and Audio Playback =
'''Include File(s):''' [[http://hg.libsdl.org/...
- CategoryAPI . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
= SDL 2.0 API by Name =
<<TableOfContents()>>
== Hints ==
<<FullSearchCached(category:Catego...
- APIContributionStyleGuide . . . 1 match
- ...urrounding the text for monospace.
{{{`member`}}} = `member`
. ''Example'': [[SDL_OpenAudio]]()
* Create hyperlinks if you reference an existing function, enumeration, or s...
