1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 07:41:21 +00:00

Don't exit if missing speakers when using SOUND/BEEP.

This commit is contained in:
KindOne 2021-09-23 00:57:49 -04:00 committed by GitHub
parent 0888c26bd0
commit 4e91e559dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -267,9 +267,9 @@ int32 snd_init_done=0;
void snd_init(){ void snd_init(){
if (!snd_init_done){ if (!snd_init_done){
dev = alcOpenDevice(NULL); if(!dev) exit(111); dev = alcOpenDevice(NULL);
ctx = alcCreateContext(dev, NULL); ctx = alcCreateContext(dev, NULL);
alcMakeContextCurrent(ctx); if(!ctx) exit(222); alcMakeContextCurrent(ctx);
alListener3f(AL_POSITION, 0, 0, 0); alListener3f(AL_POSITION, 0, 0, 0);
alListener3f(AL_VELOCITY, 0, 0, 0); alListener3f(AL_VELOCITY, 0, 0, 0);