yoyz / picoloop

96 stars 9 forks source link

Picoloop crash if the soundcard is not available or is not a real sound card #12

Open yoyz opened 8 years ago

yoyz commented 8 years ago

Need to add a check on the config_screen to detect if the sound card seem to be ok

farvardin commented 8 years ago

here is a gdb if it can help (well probably not that much):

~Pattern:00000017 [Pattern::~Pattern()] ~Pattern:00000017 [Pattern::~Pattern()] [Inferior 1 (process 24092) exited with code 01] { gdb ) bt No stack.

yoyz commented 8 years ago

Yes, there is no stack because the program simply exit. there is a try catch in AudioDriverRTAudio which exit the application if the audio output doesn't work. There is a exit(1) in the code when the audio output can not be reach. Today I try to openAudio() then closeAudio() to see if this 'channel' work. But the closeAudio or OpenAudio does not work as expected. It seem there is a bug somewhere in my code or in RtAudio code. When a audio channel is open it can't be close cleanly.... Maybe only on my debian but it's what I see. I will dig more on this, but if someone here has a clue on this ? I took it....