Minor JACK fix - Alex
[terminatorX.git] / src / tX_audiodevice.cc
index 60958f5b2275a13a4ef2da41b17c15e0f95c1b0e..6289aa83ff31aeac08a25c14eb7ffb183b803a01 100644 (file)
@@ -465,9 +465,9 @@ tX_audiodevice_jack::tX_audiodevice_jack():tX_audiodevice()
 int tX_audiodevice_jack::open()
 {
        tX_jack_client *jack_client=tX_jack_client::get_instance();
-       sample_rate=jack_client->get_sample_rate();
        
        if (jack_client) {
+               sample_rate=jack_client->get_sample_rate();
                client=jack_client;
                is_open=true;