Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
375fd5ed
Commit
375fd5ed
authored
Nov 07, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/jack: added option "server_name"
parent
ec25cda6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
NEWS
NEWS
+1
-1
user.xml
doc/user.xml
+9
-0
jack_output_plugin.c
src/output/jack_output_plugin.c
+8
-1
No files found.
NEWS
View file @
375fd5ed
...
...
@@ -36,7 +36,7 @@ ver 0.16 (20??/??/??)
- jack: require libjack 0.100
- jack: don't disconnect during pause
- jack: connect to server on MPD startup
- jack: added option
"client
_name"
- jack: added option
s "client_name", "server
_name"
- jack: clear ring buffers before activating
- jack: renamed option "ports" to "destination_ports"
- jack: support more than two audio channels
...
...
doc/user.xml
View file @
375fd5ed
...
...
@@ -747,6 +747,15 @@ cd mpd-version</programlisting>
</row>
<row>
<entry>
<varname>
server_name
</varname>
<parameter>
NAME
</parameter>
</entry>
<entry>
Optional name of the JACK server.
</entry>
</row>
<row>
<entry>
<varname>
autostart
</varname>
<parameter>
yes|no
</parameter>
</entry>
...
...
src/output/jack_output_plugin.c
View file @
375fd5ed
...
...
@@ -50,6 +50,8 @@ struct jack_data {
const
char
*
name
;
const
char
*
server_name
;
/* configuration */
char
*
source_ports
[
MAX_PORTS
];
...
...
@@ -200,7 +202,8 @@ mpd_jack_connect(struct jack_data *jd, GError **error_r)
jd
->
shutdown
=
false
;
jd
->
client
=
jack_client_open
(
jd
->
name
,
jd
->
options
,
&
status
);
jd
->
client
=
jack_client_open
(
jd
->
name
,
jd
->
options
,
&
status
,
jd
->
server_name
);
if
(
jd
->
client
==
NULL
)
{
g_set_error
(
error_r
,
jack_output_quark
(),
0
,
"Failed to connect to JACK server, status=%d"
,
...
...
@@ -281,6 +284,10 @@ mpd_jack_init(G_GNUC_UNUSED const struct audio_format *audio_format,
care about the JackUseExactName option */
jd
->
name
=
"Music Player Daemon"
;
jd
->
server_name
=
config_get_block_string
(
param
,
"server_name"
,
NULL
);
if
(
jd
->
server_name
!=
NULL
)
jd
->
options
|=
JackServerName
;
if
(
!
config_get_block_bool
(
param
,
"autostart"
,
false
))
jd
->
options
|=
JackNoStartServer
;
...
...
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