]> git.mxchange.org Git - flightgear.git/commit
sound: fix sound-buffer-in-use issue
authorThorstenB <brehmt@gmail.com>
Sun, 4 Dec 2011 16:18:02 +0000 (17:18 +0100)
committerThorstenB <brehmt@gmail.com>
Sun, 4 Dec 2011 16:18:02 +0000 (17:18 +0100)
commit07aa70dce9a6a429a88cd8d9e77f4a228b35b24f
tree20cb5435105f6c03e76d23a0fa41b80f527b4263
parent9933a7cb4ab5594eb89b70cd736ae248bfca7fb0
sound: fix sound-buffer-in-use issue
FGFX objects must be dereferenced early enough, and sound manager must be
removed late enough - otherwise openal complains about resources being
still in use when tryin to remove buffers.
Also: do not create FGFX objects for AI/MP aircraft, when AI sound is
disabled.
src/AIModel/AIBase.cxx
src/Main/globals.cxx
src/Model/acmodel.cxx