Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
wine
wine-cw
Commits
5715d2b5
Commit
5715d2b5
authored
Feb 22, 2022
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Implement the synth GetFormat method.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
167ae41b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
synth.c
dlls/dmsynth/synth.c
+20
-2
No files found.
dlls/dmsynth/synth.c
View file @
5715d2b5
...
...
@@ -505,11 +505,29 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_GetChannelPriority(IDirectMusicSynt
}
static
HRESULT
WINAPI
IDirectMusicSynth8Impl_GetFormat
(
IDirectMusicSynth8
*
iface
,
WAVEFORMATEX
*
wave_format
,
DWORD
*
wave_format_
size
)
WAVEFORMATEX
*
format
,
DWORD
*
size
)
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
WAVEFORMATEX
fmt
;
FIXME
(
"(%p)->(%p, %p): stub
\n
"
,
This
,
wave_format
,
wave_format_size
);
TRACE
(
"(%p, %p, %p)
\n
"
,
This
,
format
,
size
);
if
(
!
size
)
return
E_POINTER
;
if
(
!
This
->
open
)
return
DMUS_E_SYNTHNOTCONFIGURED
;
if
(
format
)
{
fmt
.
wFormatTag
=
WAVE_FORMAT_PCM
;
fmt
.
nChannels
=
This
->
params
.
dwAudioChannels
;
fmt
.
nSamplesPerSec
=
This
->
params
.
dwSampleRate
;
fmt
.
wBitsPerSample
=
16
;
fmt
.
nBlockAlign
=
This
->
params
.
dwAudioChannels
*
fmt
.
wBitsPerSample
/
8
;
fmt
.
nAvgBytesPerSec
=
This
->
params
.
dwSampleRate
*
fmt
.
nBlockAlign
;
fmt
.
cbSize
=
0
;
memcpy
(
format
,
&
fmt
,
min
(
*
size
,
sizeof
(
fmt
)));
}
*
size
=
sizeof
(
fmt
);
return
S_OK
;
}
...
...
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