mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-01 08:00:37 +00:00
Exits if without dev
or ctx
.
This commit is contained in:
parent
4e91e559dd
commit
4995175a16
|
@ -267,8 +267,8 @@ int32 snd_init_done=0;
|
|||
void snd_init(){
|
||||
if (!snd_init_done){
|
||||
|
||||
dev = alcOpenDevice(NULL);
|
||||
ctx = alcCreateContext(dev, NULL);
|
||||
dev = alcOpenDevice(NULL); if (!dev) goto done;
|
||||
ctx = alcCreateContext(dev, NULL); if (!ctx) goto done;
|
||||
alcMakeContextCurrent(ctx);
|
||||
|
||||
alListener3f(AL_POSITION, 0, 0, 0);
|
||||
|
@ -279,6 +279,7 @@ void snd_init(){
|
|||
|
||||
|
||||
}
|
||||
done:;
|
||||
snd_init_done=1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue