Commit 2f498b0f authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*further refined s_audio's sample rate detection in the -nogui mode

parent ec9c13e2
......@@ -521,7 +521,7 @@ t_float sys_getsr(void)
// proper sample rate entered. Hence we check for this here and avoid
// the -nogui nonsense where we have to do various workarounds to make
// sure that audio objects that depend on this call get the proper sr
if (sys_dacsr == 0)
if (sys_dacsr == 0 && audio_rate > 0)
sys_dacsr = (t_float)audio_rate;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment