Mercurial > SDL_sound_CoreAudio
comparison SDL_sound.c @ 576:8d62447b75f2
Added new Core Audio backend.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Sun, 10 Oct 2010 21:30:17 -0700 |
parents | 7e08477b0fc1 |
children |
comparison
equal
deleted
inserted
replaced
573:1911fc597c69 | 576:8d62447b75f2 |
---|---|
60 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SHN; | 60 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SHN; |
61 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIDI; | 61 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_MIDI; |
62 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_FLAC; | 62 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_FLAC; |
63 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_QuickTime; | 63 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_QuickTime; |
64 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SPEEX; | 64 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_SPEEX; |
65 extern const Sound_DecoderFunctions __Sound_DecoderFunctions_CoreAudio; | |
65 | 66 |
66 typedef struct | 67 typedef struct |
67 { | 68 { |
68 int available; | 69 int available; |
69 const Sound_DecoderFunctions *funcs; | 70 const Sound_DecoderFunctions *funcs; |
123 { 0, &__Sound_DecoderFunctions_QuickTime }, | 124 { 0, &__Sound_DecoderFunctions_QuickTime }, |
124 #endif | 125 #endif |
125 | 126 |
126 #if (defined SOUND_SUPPORTS_SPEEX) | 127 #if (defined SOUND_SUPPORTS_SPEEX) |
127 { 0, &__Sound_DecoderFunctions_SPEEX }, | 128 { 0, &__Sound_DecoderFunctions_SPEEX }, |
129 #endif | |
130 | |
131 #if (defined SOUND_SUPPORTS_COREAUDIO) | |
132 { 0, &__Sound_DecoderFunctions_CoreAudio }, | |
128 #endif | 133 #endif |
129 | 134 |
130 { 0, NULL } | 135 { 0, NULL } |
131 }; | 136 }; |
132 | 137 |