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
be068f36
Commit
be068f36
authored
Jan 06, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branches 'mmuman/configure-sockaddr-sin-len' and 'mmuman/haiku-build-fix'
parents
7b2283c2
5b18b662
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
HaikuOutputPlugin.cxx
src/output/plugins/HaikuOutputPlugin.cxx
+5
-5
No files found.
src/output/plugins/HaikuOutputPlugin.cxx
View file @
be068f36
...
...
@@ -79,6 +79,8 @@ private:
std
::
chrono
::
steady_clock
::
duration
Delay
()
const
noexcept
override
;
static
void
_FillBuffer
(
void
*
cookie
,
void
*
_buffer
,
size_t
size
,
gcc_unused
const
media_raw_audio_format
&
_format
);
void
FillBuffer
(
void
*
_buffer
,
size_t
size
,
gcc_unused
const
media_raw_audio_format
&
_format
);
...
...
@@ -143,8 +145,8 @@ HaikuOutput::~HaikuOutput()
finalize_application
();
}
static
void
fill_b
uffer
(
void
*
cookie
,
void
*
buffer
,
size_t
size
,
void
HaikuOutput
::
_FillB
uffer
(
void
*
cookie
,
void
*
buffer
,
size_t
size
,
const
media_raw_audio_format
&
format
)
{
HaikuOutput
*
ad
=
(
HaikuOutput
*
)
cookie
;
...
...
@@ -231,7 +233,7 @@ HaikuOutput::Open(AudioFormat &audio_format)
format
.
format
,
(
int
)
format
.
buffer_size
);
sound_player
=
new
BSoundPlayer
(
&
format
,
"MPD Output"
,
fill_b
uffer
,
NULL
,
this
);
HaikuOutput
::
_FillB
uffer
,
NULL
,
this
);
err
=
sound_player
->
InitCheck
();
if
(
err
!=
B_OK
)
{
...
...
@@ -452,8 +454,6 @@ haiku_output_set_volume(HaikuOutput &haiku, unsigned volume)
return
true
;
}
typedef
AudioOutputWrapper
<
HaikuOutput
>
Wrapper
;
const
struct
AudioOutputPlugin
haiku_output_plugin
=
{
"haiku"
,
haiku_test_default_device
,
...
...
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