Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
nerrons
purr-data
Commits
12e3f904
Commit
12e3f904
authored
14 years ago
by
Ivica Bukvic
Committed by
Hans-Christoph Steiner
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Pd-0.42.5-extended-l2ork-dev-20110316.tar.bz2
parent
dbba1169
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/m_pd.h
+1
-1
1 addition, 1 deletion
src/m_pd.h
src/s_audio_jack.c
+49
-47
49 additions, 47 deletions
src/s_audio_jack.c
with
50 additions
and
48 deletions
src/m_pd.h
+
1
−
1
View file @
12e3f904
...
...
@@ -11,7 +11,7 @@ extern "C" {
#define PD_MAJOR_VERSION 0
#define PD_MINOR_VERSION 42
#define PD_BUGFIX_VERSION 5
#define PD_TEST_VERSION "extended-l2ork-2011031
5
"
#define PD_TEST_VERSION "extended-l2ork-2011031
6
"
/* old name for "MSW" flag -- we have to take it for the sake of many old
"nmakefiles" for externs, which will define NT and not MSW */
...
...
This diff is collapsed.
Click to expand it.
src/s_audio_jack.c
+
49
−
47
View file @
12e3f904
...
...
@@ -129,53 +129,55 @@ static char** jack_get_clients(void)
jack_client_names
[
0
]
=
NULL
;
/* Build a list of clients from the list of ports */
for
(
i
=
0
;
jack_ports
[
i
]
!=
NULL
;
i
++
)
{
int
client_seen
;
regmatch_t
match_info
;
char
tmp_client_name
[
100
];
/* extract the client name from the port name, using a regex
* that parses the clientname:portname syntax */
regexec
(
&
port_regex
,
jack_ports
[
i
],
1
,
&
match_info
,
0
);
memcpy
(
tmp_client_name
,
&
jack_ports
[
i
][
match_info
.
rm_so
],
match_info
.
rm_eo
-
match_info
.
rm_so
);
tmp_client_name
[
match_info
.
rm_eo
-
match_info
.
rm_so
]
=
'\0'
;
/* do we know about this port's client yet? */
client_seen
=
0
;
for
(
j
=
0
;
j
<
num_clients
;
j
++
)
if
(
strcmp
(
tmp_client_name
,
jack_client_names
[
j
]
)
==
0
)
client_seen
=
1
;
if
(
client_seen
==
0
)
{
jack_client_names
[
num_clients
]
=
(
char
*
)
getbytes
(
strlen
(
tmp_client_name
)
+
1
);
/* The alsa_pcm client should go in spot 0. If this
* is the alsa_pcm client AND we are NOT about to put
* it in spot 0 put it in spot 0 and move whatever
* was already in spot 0 to the end. */
if
(
strcmp
(
"system"
,
tmp_client_name
)
==
0
&&
num_clients
>
0
)
{
char
*
tmp
;
/* alsa_pcm goes in spot 0 */
tmp
=
jack_client_names
[
num_clients
];
jack_client_names
[
num_clients
]
=
jack_client_names
[
0
];
jack_client_names
[
0
]
=
tmp
;
strcpy
(
jack_client_names
[
0
],
tmp_client_name
);
}
else
{
/* put the new client at the end of the client list */
strcpy
(
jack_client_names
[
num_clients
],
tmp_client_name
);
}
num_clients
++
;
}
}
if
(
jack_ports
!=
NULL
)
{
for
(
i
=
0
;
jack_ports
[
i
]
!=
NULL
;
i
++
)
{
int
client_seen
;
regmatch_t
match_info
;
char
tmp_client_name
[
100
];
/* extract the client name from the port name, using a regex
* that parses the clientname:portname syntax */
regexec
(
&
port_regex
,
jack_ports
[
i
],
1
,
&
match_info
,
0
);
memcpy
(
tmp_client_name
,
&
jack_ports
[
i
][
match_info
.
rm_so
],
match_info
.
rm_eo
-
match_info
.
rm_so
);
tmp_client_name
[
match_info
.
rm_eo
-
match_info
.
rm_so
]
=
'\0'
;
/* do we know about this port's client yet? */
client_seen
=
0
;
for
(
j
=
0
;
j
<
num_clients
;
j
++
)
if
(
strcmp
(
tmp_client_name
,
jack_client_names
[
j
]
)
==
0
)
client_seen
=
1
;
if
(
client_seen
==
0
)
{
jack_client_names
[
num_clients
]
=
(
char
*
)
getbytes
(
strlen
(
tmp_client_name
)
+
1
);
/* The alsa_pcm client should go in spot 0. If this
* is the alsa_pcm client AND we are NOT about to put
* it in spot 0 put it in spot 0 and move whatever
* was already in spot 0 to the end. */
if
(
strcmp
(
"system"
,
tmp_client_name
)
==
0
&&
num_clients
>
0
)
{
char
*
tmp
;
/* alsa_pcm goes in spot 0 */
tmp
=
jack_client_names
[
num_clients
];
jack_client_names
[
num_clients
]
=
jack_client_names
[
0
];
jack_client_names
[
0
]
=
tmp
;
strcpy
(
jack_client_names
[
0
],
tmp_client_name
);
}
else
{
/* put the new client at the end of the client list */
strcpy
(
jack_client_names
[
num_clients
],
tmp_client_name
);
}
num_clients
++
;
}
}
}
/* for (i=0;i<num_clients;i++) post("client: %s",jack_client_names[i]); */
...
...
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