mirror of
https://github.com/n64dev/cen64.git
synced 2024-06-23 14:33:13 -04:00
openal: Kill audio if ai_init fails.
This commit is contained in:
parent
ed08c028e5
commit
ec475c6874
|
@ -156,8 +156,10 @@ int ai_init(struct ai_controller *ai,
|
|||
if (!no_interface) {
|
||||
alGetError();
|
||||
|
||||
if (ai_context_create(&ai->ctx))
|
||||
if (ai_context_create(&ai->ctx)) {
|
||||
ai->no_output = 1;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue