Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
brittney allen
purr-data
Commits
94606760
Commit
94606760
authored
10 years ago
by
pokergaming
Browse files
Options
Downloads
Patches
Plain Diff
formatting improvements (tabs to spaces, lining up curly braces, etc.)
parent
7e270996
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pd/src/s_audio.c
+12
-9
12 additions, 9 deletions
pd/src/s_audio.c
pd/src/s_audio_jack.c
+352
-292
352 additions, 292 deletions
pd/src/s_audio_jack.c
with
364 additions
and
301 deletions
pd/src/s_audio.c
+
12
−
9
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",
...
...
This diff is collapsed.
Click to expand it.
pd/src/s_audio_jack.c
+
352
−
292
View file @
94606760
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment