mirror of
https://github.com/love2d/megasource.git
synced 2026-08-19 12:14:41 +02:00
Update OpenAL-soft to 1.23.1-bc7cb17.
This commit is contained in:
@@ -47,6 +47,8 @@
|
||||
|
||||
#include "common/alhelpers.h"
|
||||
|
||||
#include "win_main_utf8.h"
|
||||
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
@@ -106,7 +108,8 @@ static int LoadEffect(ALuint effect, const EFXEAXREVERBPROPERTIES *reverb)
|
||||
* the needed panning vectors).
|
||||
*/
|
||||
alEffecti(effect, AL_EFFECT_TYPE, AL_EFFECT_EAXREVERB);
|
||||
if((err=alGetError()) != AL_NO_ERROR)
|
||||
err = alGetError();
|
||||
if(err != AL_NO_ERROR)
|
||||
{
|
||||
fprintf(stderr, "Failed to set EAX Reverb: %s (0x%04x)\n", alGetString(err), err);
|
||||
return 0;
|
||||
@@ -137,8 +140,9 @@ static int LoadEffect(ALuint effect, const EFXEAXREVERBPROPERTIES *reverb)
|
||||
alEffectf(effect, AL_EAXREVERB_ROOM_ROLLOFF_FACTOR, reverb->flRoomRolloffFactor);
|
||||
alEffecti(effect, AL_EAXREVERB_DECAY_HFLIMIT, reverb->iDecayHFLimit);
|
||||
|
||||
/* Check if an error occured, and return failure if so. */
|
||||
if((err=alGetError()) != AL_NO_ERROR)
|
||||
/* Check if an error occurred, and return failure if so. */
|
||||
err = alGetError();
|
||||
if(err != AL_NO_ERROR)
|
||||
{
|
||||
fprintf(stderr, "Error setting up reverb: %s\n", alGetString(err));
|
||||
return 0;
|
||||
@@ -210,7 +214,7 @@ static ALuint LoadSound(const char *filename)
|
||||
free(membuf);
|
||||
sf_close(sndfile);
|
||||
|
||||
/* Check if an error occured, and clean up if so. */
|
||||
/* Check if an error occurred, and clean up if so. */
|
||||
err = alGetError();
|
||||
if(err != AL_NO_ERROR)
|
||||
{
|
||||
@@ -493,7 +497,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
if(argc < 1)
|
||||
{
|
||||
fprintf(stderr, "No filename spacified.\n");
|
||||
fprintf(stderr, "No filename specified.\n");
|
||||
CloseAL();
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user