X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fopenal%2Fsound.c;h=fc1e60ab43b37acfeccea68b4c86a26eef80e3a4;hb=89e2500f8b78159e95a06316143f5549e32e0994;hp=d046803dc4d0f0018d6039b5e73e3b91726160bb;hpb=0102df00b3e2485b084f11a8270a2365d1aa7cbc;p=flatwaifu.git diff --git a/src/openal/sound.c b/src/openal/sound.c index d046803..fc1e60a 100644 --- a/src/openal/sound.c +++ b/src/openal/sound.c @@ -6,8 +6,14 @@ #include "misc.h" // int2host #include "error.h" // logo -#include -#include +#ifdef __APPLE__ +# include +# include +#else +# include +# include +#endif + #include // SDL_BuildAudioCVT SDL_ConvertAudio #include #include // malloc @@ -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);