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
44621f73
Commit
44621f73
authored
Jul 31, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/winmm: adapt to PcmBuffer API changes
parent
8ead8f7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
WinmmOutputPlugin.cxx
src/output/WinmmOutputPlugin.cxx
+4
-5
No files found.
src/output/WinmmOutputPlugin.cxx
View file @
44621f73
...
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "WinmmOutputPlugin.hxx"
#include "OutputAPI.hxx"
#include "pcm/
pcm_buffer.h
"
#include "pcm/
PcmBuffer.hxx
"
#include "MixerList.hxx"
#include <stdlib.h>
...
...
@@ -30,7 +30,7 @@
#define G_LOG_DOMAIN "winmm_output"
struct
WinmmBuffer
{
struct
pcm_b
uffer
buffer
;
PcmB
uffer
buffer
;
WAVEHDR
hdr
;
};
...
...
@@ -190,7 +190,6 @@ winmm_output_open(struct audio_output *ao, struct audio_format *audio_format,
}
for
(
unsigned
i
=
0
;
i
<
G_N_ELEMENTS
(
wo
->
buffers
);
++
i
)
{
pcm_buffer_init
(
&
wo
->
buffers
[
i
].
buffer
);
memset
(
&
wo
->
buffers
[
i
].
hdr
,
0
,
sizeof
(
wo
->
buffers
[
i
].
hdr
));
}
...
...
@@ -205,7 +204,7 @@ winmm_output_close(struct audio_output *ao)
WinmmOutput
*
wo
=
(
WinmmOutput
*
)
ao
;
for
(
unsigned
i
=
0
;
i
<
G_N_ELEMENTS
(
wo
->
buffers
);
++
i
)
pcm_buffer_deinit
(
&
wo
->
buffers
[
i
].
buffer
);
wo
->
buffers
[
i
].
buffer
.
Clear
(
);
waveOutClose
(
wo
->
handle
);
...
...
@@ -220,7 +219,7 @@ winmm_set_buffer(WinmmOutput *wo, WinmmBuffer *buffer,
const
void
*
data
,
size_t
size
,
GError
**
error_r
)
{
void
*
dest
=
pcm_buffer_get
(
&
buffer
->
buffer
,
size
);
void
*
dest
=
buffer
->
buffer
.
Get
(
size
);
assert
(
dest
!=
nullptr
);
memcpy
(
dest
,
data
,
size
);
...
...
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