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
39dc83bd
Commit
39dc83bd
authored
Dec 19, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/Print: print the plugin name
parent
503063cd
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
1 deletion
+19
-1
NEWS
NEWS
+1
-0
protocol.xml
doc/protocol.xml
+1
-0
Control.cxx
src/output/Control.cxx
+6
-0
Control.hxx
src/output/Control.hxx
+3
-0
Filtered.hxx
src/output/Filtered.hxx
+4
-0
Print.cxx
src/output/Print.cxx
+4
-1
No files found.
NEWS
View file @
39dc83bd
...
...
@@ -2,6 +2,7 @@ ver 0.21 (not yet released)
* protocol
- "tagtypes" can be used to hide tags
- "find" and "search" can sort
- "outputs" prints the plugin name
- close connection when client sends HTTP request
* tags
- new tag "OriginalDate"
...
...
doc/protocol.xml
View file @
39dc83bd
...
...
@@ -2521,6 +2521,7 @@ OK
<screen>
outputid: 0
outputname: My ALSA Device
plugin: alsa
outputenabled: 0
OK
</screen>
...
...
src/output/Control.cxx
View file @
39dc83bd
...
...
@@ -59,6 +59,12 @@ AudioOutputControl::GetName() const noexcept
}
const
char
*
AudioOutputControl
::
GetPluginName
()
const
noexcept
{
return
output
->
GetPluginName
();
}
const
char
*
AudioOutputControl
::
GetLogName
()
const
noexcept
{
return
output
->
GetLogName
();
...
...
src/output/Control.hxx
View file @
39dc83bd
...
...
@@ -233,6 +233,9 @@ public:
const
char
*
GetName
()
const
noexcept
;
gcc_pure
const
char
*
GetPluginName
()
const
noexcept
;
gcc_pure
const
char
*
GetLogName
()
const
noexcept
;
AudioOutputClient
&
GetClient
()
noexcept
{
...
...
src/output/Filtered.hxx
View file @
39dc83bd
...
...
@@ -147,6 +147,10 @@ public:
return
name
;
}
const
char
*
GetPluginName
()
const
noexcept
{
return
plugin_name
;
}
const
char
*
GetLogName
()
const
noexcept
{
return
log_name
.
c_str
();
}
...
...
src/output/Print.cxx
View file @
39dc83bd
...
...
@@ -36,7 +36,10 @@ printAudioDevices(Response &r, const MultipleOutputs &outputs)
r
.
Format
(
"outputid: %u
\n
"
"outputname: %s
\n
"
"plugin: %s
\n
"
"outputenabled: %i
\n
"
,
i
,
ao
.
GetName
(),
ao
.
IsEnabled
());
i
,
ao
.
GetName
(),
ao
.
GetPluginName
(),
ao
.
IsEnabled
());
}
}
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