Fixes OpenAl Error (A004) upon shutdown.
Basically removes the buffers _after_ stopping all sounds.
This commit is contained in:
@@ -268,10 +268,11 @@ void audiomanager::soundcleanup()
|
||||
mapsounds.shrink(0);
|
||||
locations.deletecontents();
|
||||
gamesounds.shrink(0);
|
||||
bufferpool.clear();
|
||||
|
||||
// kill scheduler
|
||||
sourcescheduler::instance().reset();
|
||||
|
||||
bufferpool.clear();
|
||||
|
||||
// shutdown openal
|
||||
alcMakeContextCurrent(NULL);
|
||||
|
||||
Reference in New Issue
Block a user