mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 15:50:25 +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(){
|
void snd_init(){
|
||||||
if (!snd_init_done){
|
if (!snd_init_done){
|
||||||
|
|
||||||
dev = alcOpenDevice(NULL);
|
dev = alcOpenDevice(NULL); if (!dev) goto done;
|
||||||
ctx = alcCreateContext(dev, NULL);
|
ctx = alcCreateContext(dev, NULL); if (!ctx) goto done;
|
||||||
alcMakeContextCurrent(ctx);
|
alcMakeContextCurrent(ctx);
|
||||||
|
|
||||||
alListener3f(AL_POSITION, 0, 0, 0);
|
alListener3f(AL_POSITION, 0, 0, 0);
|
||||||
|
@ -279,6 +279,7 @@ void snd_init(){
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
done:;
|
||||||
snd_init_done=1;
|
snd_init_done=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue