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
0cf85b07
Commit
0cf85b07
authored
Nov 09, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/haiku: eliminate DoClose()
parent
fa90047e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
HaikuOutputPlugin.cxx
src/output/plugins/HaikuOutputPlugin.cxx
+2
-9
No files found.
src/output/plugins/HaikuOutputPlugin.cxx
View file @
0cf85b07
...
...
@@ -74,10 +74,7 @@ public:
static
HaikuOutput
*
Create
(
const
ConfigBlock
&
block
,
Error
&
error
);
bool
Open
(
AudioFormat
&
audio_format
,
Error
&
error
);
void
Close
()
{
DoClose
();
}
void
Close
();
size_t
Play
(
const
void
*
chunk
,
size_t
size
,
Error
&
error
);
void
Cancel
();
...
...
@@ -88,10 +85,6 @@ public:
gcc_unused
const
media_raw_audio_format
&
_format
);
void
SendTag
(
const
Tag
&
tag
);
private
:
void
DoClose
();
};
static
constexpr
Domain
haiku_output_domain
(
"haiku_output"
);
...
...
@@ -134,7 +127,7 @@ HaikuOutput::Create(const ConfigBlock &block, Error &)
}
void
HaikuOutput
::
Do
Close
()
HaikuOutput
::
Close
()
{
sound_player
->
SetHasData
(
false
);
delete_sem
(
new_buffer
);
...
...
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