Mercurial > sdl-ios-xcode
comparison src/audio/SDL_audio.c @ 3537:e897a4a9f578
Switch to mixed case for consistency with other enumerations
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 10 Dec 2009 08:28:26 +0000 |
parents | 00fab0ebfe54 |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3536:0267b8b1595c | 3537:e897a4a9f578 |
---|---|
1041 { | 1041 { |
1042 return open_audio_device(device, iscapture, desired, obtained, | 1042 return open_audio_device(device, iscapture, desired, obtained, |
1043 allowed_changes, 2); | 1043 allowed_changes, 2); |
1044 } | 1044 } |
1045 | 1045 |
1046 SDL_audiostatus | 1046 SDL_AudioStatus |
1047 SDL_GetAudioDeviceStatus(SDL_AudioDeviceID devid) | 1047 SDL_GetAudioDeviceStatus(SDL_AudioDeviceID devid) |
1048 { | 1048 { |
1049 SDL_AudioDevice *device = get_audio_device(devid); | 1049 SDL_AudioDevice *device = get_audio_device(devid); |
1050 SDL_audiostatus status = SDL_AUDIO_STOPPED; | 1050 SDL_AudioStatus status = SDL_AUDIO_STOPPED; |
1051 if (device && device->enabled) { | 1051 if (device && device->enabled) { |
1052 if (device->paused) { | 1052 if (device->paused) { |
1053 status = SDL_AUDIO_PAUSED; | 1053 status = SDL_AUDIO_PAUSED; |
1054 } else { | 1054 } else { |
1055 status = SDL_AUDIO_PLAYING; | 1055 status = SDL_AUDIO_PLAYING; |
1057 } | 1057 } |
1058 return (status); | 1058 return (status); |
1059 } | 1059 } |
1060 | 1060 |
1061 | 1061 |
1062 SDL_audiostatus | 1062 SDL_AudioStatus |
1063 SDL_GetAudioStatus(void) | 1063 SDL_GetAudioStatus(void) |
1064 { | 1064 { |
1065 return SDL_GetAudioDeviceStatus(1); | 1065 return SDL_GetAudioDeviceStatus(1); |
1066 } | 1066 } |
1067 | 1067 |