Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -521,7 +521,7 @@ t_float sys_getsr(void) ...@@ -521,7 +521,7 @@ t_float sys_getsr(void)
// proper sample rate entered. Hence we check for this here and avoid // proper sample rate entered. Hence we check for this here and avoid
// the -nogui nonsense where we have to do various workarounds to make // 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 // 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; sys_dacsr = (t_float)audio_rate;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment