Fix audio source id bug
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
d84a993739
commit
fc4f124a25
@ -1092,6 +1092,7 @@ Fix edge-polygon generation for invalid cases
|
|||||||
Add engine logo to title menu
|
Add engine logo to title menu
|
||||||
Use STBttf for font loading/remove dependency on java.awt.fonts
|
Use STBttf for font loading/remove dependency on java.awt.fonts
|
||||||
Fix font height lookups in string carousel, text input, and word
|
Fix font height lookups in string carousel, text input, and word
|
||||||
|
Fix invalid audio source ID bug
|
||||||
|
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
|
|||||||
@ -168,9 +168,10 @@ public class AudioSource {
|
|||||||
* Cleans up the source
|
* Cleans up the source
|
||||||
*/
|
*/
|
||||||
public void cleanup() {
|
public void cleanup() {
|
||||||
stop();
|
this.stop();
|
||||||
|
int oldId = sourceId;
|
||||||
sourceId = UNDEFINED_ID;
|
sourceId = UNDEFINED_ID;
|
||||||
AL10.alDeleteSources(sourceId);
|
AL10.alDeleteSources(oldId);
|
||||||
Globals.audioEngine.checkError();
|
Globals.audioEngine.checkError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user