TinySound locks up application

62 views Asked by At

In my application, I am using TinySound for the sound system, but for some reason calling TinySound.init() will lock up my application and prevent it from doing anything else. Is this a bug with TinySound, or user error that can be fixed?

1

There are 1 answers

2
flaz14 On

I've downloaded the latest (1.1.1) version of TinySound and run example from https://github.com/finnkuusisto/TinySound/blob/master/example/TinySoundExample.java

But edited code

public static void main(String[] args) throws Exception {
    //initialize TinySound
    TinySound.init();
    System.out.println("After init");
}

I got After init printed. So your issue is not related to TinySound.init() method directly. Most probably you start to play sound in the main thread. And the thread will be blocked until the whole file will be played.