X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fopenal%2Fsound.c;h=73d36a42968a46e87f3548c900257a0dd84635a8;hb=8d8db2ae3c64d7de45bb34cbdac2c4f150ed0c09;hp=d046803dc4d0f0018d6039b5e73e3b91726160bb;hpb=0102df00b3e2485b084f11a8270a2365d1aa7cbc;p=flatwaifu.git diff --git a/src/openal/sound.c b/src/openal/sound.c index d046803..73d36a4 100644 --- a/src/openal/sound.c +++ b/src/openal/sound.c @@ -6,9 +6,15 @@ #include "misc.h" // int2host #include "error.h" // logo -#include -#include -#include // SDL_BuildAudioCVT SDL_ConvertAudio +#ifdef __APPLE__ +# include +# include +#else +# include +# include +#endif + +#include "SDL.h" // SDL_BuildAudioCVT SDL_ConvertAudio #include #include // malloc #include // memcpy @@ -177,7 +183,7 @@ void S_free (snd_t *s) { ALint h; openal_snd *snd = (openal_snd*)s; if (snd != NULL) { - assert(snd->base.tag = TAG_OAL1); + assert(snd->base.tag == TAG_OAL1); if (context != NULL) { for (i = 0; i < MAX_CHANNELS; i++) { alGetSourcei(sources[i], AL_BUFFER, &h);