mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-05 22:50:23 +00:00
Don't exit if missing speakers when using SOUND/BEEP.
This commit is contained in:
parent
0888c26bd0
commit
4e91e559dd
|
@ -267,9 +267,9 @@ int32 snd_init_done=0;
|
|||
void snd_init(){
|
||||
if (!snd_init_done){
|
||||
|
||||
dev = alcOpenDevice(NULL); if(!dev) exit(111);
|
||||
dev = alcOpenDevice(NULL);
|
||||
ctx = alcCreateContext(dev, NULL);
|
||||
alcMakeContextCurrent(ctx); if(!ctx) exit(222);
|
||||
alcMakeContextCurrent(ctx);
|
||||
|
||||
alListener3f(AL_POSITION, 0, 0, 0);
|
||||
alListener3f(AL_VELOCITY, 0, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue