0ad/source/soundmanager/items
wraitii ce74c41297 Fix audio leak that resulted in openAL errors after a while.
Sound items were only deleted after 'last play' when stopped, but they
could also be left in 'paused' or 'initial' states, and were then not
cleared until the game exits (effectively a memory leak). This affected
particularly music & ambient sounds, which also used the most
buffers(/memory).
On MacOS (at least), this resulted in OpenAL errors & sound failures
after a while playing the game, because MacOS has a max "in flight
buffers" of 1024.

Also clean up some control flow in CStreamItem

Reported by: Eszett
Thanks langbart for the consistent repro'.

Fixes #5265

Differential Revision: https://code.wildfiregames.com/D3445
This was SVN commit r24762.
2021-01-22 12:50:05 +00:00
..
CBufferItem.cpp Fix audio leak that resulted in openAL errors after a while. 2021-01-22 12:50:05 +00:00
CBufferItem.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
CSoundBase.cpp Clean up ThreadUtil, use standard C++11 constructs instead of custom ones. 2019-06-06 19:30:48 +00:00
CSoundBase.h Clean up ThreadUtil, use standard C++11 constructs instead of custom ones. 2019-06-06 19:30:48 +00:00
CSoundItem.cpp Fix audio leak that resulted in openAL errors after a while. 2021-01-22 12:50:05 +00:00
CSoundItem.h handle initialization errors cleanly, clean stuff up 2013-04-18 03:24:20 +00:00
CStreamItem.cpp Fix audio leak that resulted in openAL errors after a while. 2021-01-22 12:50:05 +00:00
CStreamItem.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00
ISoundItem.h Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/. 2016-11-23 11:18:37 +00:00