Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
94606760
Commit
94606760
authored
Jun 16, 2014
by
pokergaming
Browse files
formatting improvements (tabs to spaces, lining up curly braces, etc.)
parent
7e270996
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
pd/src/s_audio.c
View file @
94606760
...
...
@@ -76,7 +76,7 @@ void sched_audio_callbackfn(void);
void
sched_reopenmeplease
(
void
);
#ifdef USEAPI_JACK
/* needed to fix srate when using jack, inclded in s_audio_jack.c */
/* needed to fix srate when using jack, inclded in s_audio_jack.c */
extern
int
jack_get_srate
(
void
);
#endif
/* JACK */
...
...
@@ -102,11 +102,13 @@ void sys_get_audio_params(
paudiooutdev
[
i
]
=
audio_audiooutdev
[
i
],
choutdev
[
i
]
=
audio_audiochoutdev
[
i
];
#ifdef USEAPI_JACK
if
(
sys_audioapiopened
==
API_JACK
)
{
if
(
jack_get_srate
())
{
audio_rate
=
jack_get_srate
();
}
}
if
(
sys_audioapiopened
==
API_JACK
)
{
if
(
jack_get_srate
())
{
audio_rate
=
jack_get_srate
();
}
}
#endif
/* JACK */
*
prate
=
audio_rate
;
*
padvance
=
audio_advance
;
...
...
@@ -672,9 +674,10 @@ void glob_audio_properties(t_pd *dummy, t_floatarg flongform)
&
naudiooutdev
,
audiooutdev
,
choutdev
,
&
rate
,
&
advance
,
&
callback
);
#ifdef USEAPI_JACK
if
(
sys_audioapiopened
==
API_JACK
)
{
sys_setchsr
(
audio_nextinchans
,
audio_nextoutchans
,
rate
);
}
if
(
sys_audioapiopened
==
API_JACK
)
{
sys_setchsr
(
audio_nextinchans
,
audio_nextoutchans
,
rate
);
}
#endif
/* JACK */
/* post("naudioindev %d naudiooutdev %d longform %f",
...
...
pd/src/s_audio_jack.c
View file @
94606760
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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