Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
2f498b0f
Commit
2f498b0f
authored
Jun 27, 2014
by
Ivica Bukvic
Browse files
*further refined s_audio's sample rate detection in the -nogui mode
parent
ec9c13e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/s_audio.c
View file @
2f498b0f
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment