close mp3 file handles.

This commit is contained in:
fd
2015-02-13 23:17:33 -05:00
parent ed2d3058ba
commit 3a5f66ba81
3 changed files with 23 additions and 0 deletions

View File

@@ -392,5 +392,16 @@ public class OpenALStreamPlayer {
public void resuming() {
lastUpdateTime = System.currentTimeMillis() - offsetTime;
}
public void close() {
if(audio != null){
try {
audio.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}