|
@@ -1139,10 +1139,15 @@ static int |
|
|
alsa_driver_restart (alsa_driver_t *driver) |
|
|
alsa_driver_restart (alsa_driver_t *driver) |
|
|
{ |
|
|
{ |
|
|
int res; |
|
|
int res; |
|
|
|
|
|
|
|
|
driver->xrun_recovery = 1; |
|
|
driver->xrun_recovery = 1; |
|
|
if ((res = driver->nt_stop((struct _jack_driver_nt *) driver))==0) |
|
|
if ((res = driver->nt_stop((struct _jack_driver_nt *) driver))==0) |
|
|
res = driver->nt_start((struct _jack_driver_nt *) driver); |
|
|
res = driver->nt_start((struct _jack_driver_nt *) driver); |
|
|
driver->xrun_recovery = 0; |
|
|
driver->xrun_recovery = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (res && driver->midi) |
|
|
|
|
|
(driver->midi->stop)(driver->midi); |
|
|
|
|
|
|
|
|
return res; |
|
|
return res; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|