Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2009-11-15 01:44:20
Size: 502
Editor: SheenaSmith
Comment: create page, add content
Revision 2 as of 2009-11-15 01:46:10
Size: 594
Editor: SheenaSmith
Comment: content added
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
You can add your code example here int i;

for ( i = 0; i < SDL_GetNumAudioDrivers(); ++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

The number of built in audio drivers.

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

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