Fix audio source id bug
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2024-11-20 18:34:26 -05:00
parent d84a993739
commit fc4f124a25
2 changed files with 4 additions and 2 deletions

View File

@ -1092,6 +1092,7 @@ Fix edge-polygon generation for invalid cases
Add engine logo to title menu
Use STBttf for font loading/remove dependency on java.awt.fonts
Fix font height lookups in string carousel, text input, and word
Fix invalid audio source ID bug
# TODO

View File

@ -168,9 +168,10 @@ public class AudioSource {
* Cleans up the source
*/
public void cleanup() {
stop();
this.stop();
int oldId = sourceId;
sourceId = UNDEFINED_ID;
AL10.alDeleteSources(sourceId);
AL10.alDeleteSources(oldId);
Globals.audioEngine.checkError();
}