Closed TonalidadeHidrica closed 5 years ago
Calling the .stop() method will free up all the resources, have a look at it :)
Please try. stop() and let me know :)
But stop() does not close file stream, audio output stream etc, right? It seems that the only way to close them is calling reset().
Please check the latest release :) https://github.com/goxr3plus/java-stream-player/releases
9.0.1 solves exactly what you asked for :)
I looked for a way to freeing the resources opened by the StreamPlayer and found StreamPlayer#reset method, but it was private and was not accessible from outside. Why is it private? Is it possible to make it public? (I also found that calling StreamPlayer#open method calls this reset method so it seems I don't have to worry so much as long as I used same StreamPlayer instance.)