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
ddd8b16f
Commit
ddd8b16f
authored
Jan 25, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/roar: use AudioOutputWrapper::Init()
parent
b79ce77e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
RoarOutputPlugin.cxx
src/output/plugins/RoarOutputPlugin.cxx
+6
-15
No files found.
src/output/plugins/RoarOutputPlugin.cxx
View file @
ddd8b16f
...
@@ -58,6 +58,10 @@ public:
...
@@ -58,6 +58,10 @@ public:
return
&
base
;
return
&
base
;
}
}
static
RoarOutput
*
Create
(
const
ConfigBlock
&
block
)
{
return
new
RoarOutput
(
block
);
}
void
Open
(
AudioFormat
&
audio_format
);
void
Open
(
AudioFormat
&
audio_format
);
void
Close
();
void
Close
();
...
@@ -133,12 +137,6 @@ roar_output_set_volume(RoarOutput &roar, unsigned volume)
...
@@ -133,12 +137,6 @@ roar_output_set_volume(RoarOutput &roar, unsigned volume)
roar
.
SetVolume
(
volume
);
roar
.
SetVolume
(
volume
);
}
}
static
AudioOutput
*
roar_init
(
const
ConfigBlock
&
block
)
{
return
*
new
RoarOutput
(
block
);
}
static
void
static
void
roar_use_audio_format
(
struct
roar_audio_info
*
info
,
roar_use_audio_format
(
struct
roar_audio_info
*
info
,
AudioFormat
&
audio_format
)
AudioFormat
&
audio_format
)
...
@@ -348,26 +346,19 @@ RoarOutput::SendTag(const Tag &tag)
...
@@ -348,26 +346,19 @@ RoarOutput::SendTag(const Tag &tag)
roar_vs_meta
(
vss
,
vals
,
cnt
,
&
(
err
));
roar_vs_meta
(
vss
,
vals
,
cnt
,
&
(
err
));
}
}
static
void
roar_send_tag
(
AudioOutput
*
ao
,
const
Tag
&
meta
)
{
RoarOutput
*
self
=
(
RoarOutput
*
)
ao
;
self
->
SendTag
(
meta
);
}
typedef
AudioOutputWrapper
<
RoarOutput
>
Wrapper
;
typedef
AudioOutputWrapper
<
RoarOutput
>
Wrapper
;
const
struct
AudioOutputPlugin
roar_output_plugin
=
{
const
struct
AudioOutputPlugin
roar_output_plugin
=
{
"roar"
,
"roar"
,
nullptr
,
nullptr
,
roar_i
nit
,
&
Wrapper
::
I
nit
,
&
Wrapper
::
Finish
,
&
Wrapper
::
Finish
,
nullptr
,
nullptr
,
nullptr
,
nullptr
,
&
Wrapper
::
Open
,
&
Wrapper
::
Open
,
&
Wrapper
::
Close
,
&
Wrapper
::
Close
,
nullptr
,
nullptr
,
roar_send_t
ag
,
&
Wrapper
::
SendT
ag
,
&
Wrapper
::
Play
,
&
Wrapper
::
Play
,
nullptr
,
nullptr
,
&
Wrapper
::
Cancel
,
&
Wrapper
::
Cancel
,
...
...
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