Wiki Page Content

Differences between revisions 7 and 8
Revision 7 as of 2010-09-23 22:08:23
Size: 700
Editor: SheenaSmith
Comment: minor change
Revision 8 as of 2013-07-14 06:44:09
Size: 701
Editor: RainerDeyke
Comment: Fixed syntax error in code example.
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
    printf("Audio driver %d: %s\n", i, SDL_GetAudioDriver(i);     printf("Audio driver %d: %s\n", i, SDL_GetAudioDriver(i));

SDL_GetNumAudioDrivers

Use this function to return the number of built in audio drivers.

Syntax

int SDL_GetNumAudioDrivers(void)

Return Value

Returns the number of built in audio drivers. green

Code Examples

int i;

for ( i = 0; i < SDL_GetNumAudioDrivers(); ++i ) {
    printf("Audio driver %d: %s\n", i, SDL_GetAudioDriver(i));
}

Remarks

You can add useful comments here


CategoryAPI, CategoryAudio

None: SDL_GetNumAudioDrivers (last edited 2016-05-14 22:18:35 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit