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
ec41caad
Commit
ec41caad
authored
Jan 07, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/wrapper: add method SendTag()
parent
06ec06cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
Wrapper.hxx
src/output/Wrapper.hxx
+6
-0
RecorderOutputPlugin.cxx
src/output/plugins/RecorderOutputPlugin.cxx
+1
-9
No files found.
src/output/Wrapper.hxx
View file @
ec41caad
...
...
@@ -67,6 +67,12 @@ struct AudioOutputWrapper {
return
t
.
Delay
();
}
gcc_pure
static
void
SendTag
(
AudioOutput
*
ao
,
const
Tag
&
tag
)
{
T
&
t
=
Cast
(
*
ao
);
t
.
SendTag
(
tag
);
}
static
size_t
Play
(
AudioOutput
*
ao
,
const
void
*
chunk
,
size_t
size
,
Error
&
error
)
{
T
&
t
=
Cast
(
*
ao
);
...
...
src/output/plugins/RecorderOutputPlugin.cxx
View file @
ec41caad
...
...
@@ -227,14 +227,6 @@ RecorderOutput::SendTag(const Tag &tag)
LogError
(
error
);
}
static
void
recorder_output_send_tag
(
AudioOutput
*
ao
,
const
Tag
&
tag
)
{
RecorderOutput
&
recorder
=
*
(
RecorderOutput
*
)
ao
;
recorder
.
SendTag
(
tag
);
}
inline
size_t
RecorderOutput
::
Play
(
const
void
*
chunk
,
size_t
size
,
Error
&
error
)
{
...
...
@@ -255,7 +247,7 @@ const struct AudioOutputPlugin recorder_output_plugin = {
&
Wrapper
::
Open
,
&
Wrapper
::
Close
,
nullptr
,
recorder_output_send_t
ag
,
&
Wrapper
::
SendT
ag
,
&
Wrapper
::
Play
,
nullptr
,
nullptr
,
...
...
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