Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
26a9ce80
Commit
26a9ce80
authored
Feb 04, 2022
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7ac97986
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
42 deletions
+41
-42
Makefile.in
dlls/dmsynth/Makefile.in
+0
-1
synth.c
dlls/dmsynth/synth.c
+34
-34
synthsink.c
dlls/dmsynth/synthsink.c
+7
-7
No files found.
dlls/dmsynth/Makefile.in
View file @
26a9ce80
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
dmsynth.dll
IMPORTS
=
dxguid uuid ole32 advapi32
...
...
dlls/dmsynth/synth.c
View file @
26a9ce80
...
...
@@ -71,7 +71,7 @@ static ULONG WINAPI IDirectMusicSynth8Impl_AddRef(IDirectMusicSynth8 *iface)
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)
->(): new ref = %
u
\n
"
,
This
,
ref
);
TRACE
(
"(%p)
: new ref = %l
u
\n
"
,
This
,
ref
);
return
ref
;
}
...
...
@@ -81,7 +81,7 @@ static ULONG WINAPI IDirectMusicSynth8Impl_Release(IDirectMusicSynth8 *iface)
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)
->(): new ref = %
u
\n
"
,
This
,
ref
);
TRACE
(
"(%p)
: new ref = %l
u
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
This
->
latency_clock
)
...
...
@@ -118,7 +118,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_SetNumChannelGroups(IDirectMusicSyn
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
FIXME
(
"(%p
)->(%
d): stub
\n
"
,
This
,
groups
);
FIXME
(
"(%p
, %l
d): stub
\n
"
,
This
,
groups
);
return
S_OK
;
}
...
...
@@ -142,10 +142,10 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Download(IDirectMusicSynth8 *iface,
if
(
TRACE_ON
(
dmsynth
))
{
TRACE
(
"Dump DMUS_DOWNLOADINFO struct:
\n
"
);
TRACE
(
" - dwDLType = %u
\n
"
,
info
->
dwDLType
);
TRACE
(
" - dwDLId = %u
\n
"
,
info
->
dwDLId
);
TRACE
(
" - dwNumOffsetTableEntries = %u
\n
"
,
info
->
dwNumOffsetTableEntries
);
TRACE
(
" - cbSize = %u
\n
"
,
info
->
cbSize
);
TRACE
(
" - dwDLType = %
l
u
\n
"
,
info
->
dwDLType
);
TRACE
(
" - dwDLId = %
l
u
\n
"
,
info
->
dwDLId
);
TRACE
(
" - dwNumOffsetTableEntries = %
l
u
\n
"
,
info
->
dwNumOffsetTableEntries
);
TRACE
(
" - cbSize = %
l
u
\n
"
,
info
->
cbSize
);
}
/* The struct should have at least one offset corresponding to the download object itself */
...
...
@@ -176,14 +176,14 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Download(IDirectMusicSynth8 *iface,
if
(
TRACE_ON
(
dmsynth
))
{
TRACE
(
"Dump DMUS_WAVE struct
\n
"
);
TRACE
(
" - ulFirstExtCkIdx = %u
\n
"
,
wave
->
ulFirstExtCkIdx
);
TRACE
(
" - ulCopyrightIdx = %u
\n
"
,
wave
->
ulCopyrightIdx
);
TRACE
(
" - ulWaveDataIdx = %u
\n
"
,
wave
->
ulWaveDataIdx
);
TRACE
(
" - ulFirstExtCkIdx = %
l
u
\n
"
,
wave
->
ulFirstExtCkIdx
);
TRACE
(
" - ulCopyrightIdx = %
l
u
\n
"
,
wave
->
ulCopyrightIdx
);
TRACE
(
" - ulWaveDataIdx = %
l
u
\n
"
,
wave
->
ulWaveDataIdx
);
TRACE
(
" - WaveformatEx:
\n
"
);
TRACE
(
" - wFormatTag = %u
\n
"
,
wave
->
WaveformatEx
.
wFormatTag
);
TRACE
(
" - nChannels = %u
\n
"
,
wave
->
WaveformatEx
.
nChannels
);
TRACE
(
" - nSamplesPerSec = %u
\n
"
,
wave
->
WaveformatEx
.
nSamplesPerSec
);
TRACE
(
" - nAvgBytesPerSec = %u
\n
"
,
wave
->
WaveformatEx
.
nAvgBytesPerSec
);
TRACE
(
" - nSamplesPerSec = %
l
u
\n
"
,
wave
->
WaveformatEx
.
nSamplesPerSec
);
TRACE
(
" - nAvgBytesPerSec = %
l
u
\n
"
,
wave
->
WaveformatEx
.
nAvgBytesPerSec
);
TRACE
(
" - nBlockAlign = %u
\n
"
,
wave
->
WaveformatEx
.
nBlockAlign
);
TRACE
(
" - wBitsPerSample = %u
\n
"
,
wave
->
WaveformatEx
.
wBitsPerSample
);
TRACE
(
" - cbSize = %u
\n
"
,
wave
->
WaveformatEx
.
cbSize
);
...
...
@@ -195,7 +195,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Download(IDirectMusicSynth8 *iface,
}
wave_data
=
(
DMUS_WAVEDATA
*
)(
buffer
+
offsets
[
wave
->
ulWaveDataIdx
]);
TRACE
(
"Found %u bytes of wave data
\n
"
,
wave_data
->
cbSize
);
TRACE
(
"Found %
l
u bytes of wave data
\n
"
,
wave_data
->
cbSize
);
}
}
else
if
(
info
->
dwDLType
==
DMUS_DOWNLOADINFO_INSTRUMENT2
)
...
...
@@ -208,12 +208,12 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Download(IDirectMusicSynth8 *iface,
if
(
TRACE_ON
(
dmsynth
))
{
TRACE
(
"Dump DMUS_INSTRUMENT struct
\n
"
);
TRACE
(
" - ulPatch = %u
\n
"
,
instrument
->
ulPatch
);
TRACE
(
" - ulFirstRegionIdx = %u
\n
"
,
instrument
->
ulFirstRegionIdx
);
TRACE
(
" - ulGlobalArtIdx = %u
\n
"
,
instrument
->
ulGlobalArtIdx
);
TRACE
(
" - ulFirstExtCkIdx = %u
\n
"
,
instrument
->
ulFirstExtCkIdx
);
TRACE
(
" - ulCopyrightIdx = %u
\n
"
,
instrument
->
ulCopyrightIdx
);
TRACE
(
" - ulFlags = %u
\n
"
,
instrument
->
ulFlags
);
TRACE
(
" - ulPatch = %
l
u
\n
"
,
instrument
->
ulPatch
);
TRACE
(
" - ulFirstRegionIdx = %
l
u
\n
"
,
instrument
->
ulFirstRegionIdx
);
TRACE
(
" - ulGlobalArtIdx = %
l
u
\n
"
,
instrument
->
ulGlobalArtIdx
);
TRACE
(
" - ulFirstExtCkIdx = %
l
u
\n
"
,
instrument
->
ulFirstExtCkIdx
);
TRACE
(
" - ulCopyrightIdx = %
l
u
\n
"
,
instrument
->
ulCopyrightIdx
);
TRACE
(
" - ulFlags = %
l
u
\n
"
,
instrument
->
ulFlags
);
if
(
instrument
->
ulCopyrightIdx
)
{
...
...
@@ -235,7 +235,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Download(IDirectMusicSynth8 *iface,
}
}
TRACE
(
"Number of regions = %u
\n
"
,
nb_regions
);
TRACE
(
"Number of regions = %
l
u
\n
"
,
nb_regions
);
}
else
if
(
info
->
dwDLType
==
DMUS_DOWNLOADINFO_WAVEARTICULATION
)
{
...
...
@@ -251,7 +251,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Download(IDirectMusicSynth8 *iface,
}
else
{
WARN
(
"Unknown download type %u
\n
"
,
info
->
dwDLType
);
WARN
(
"Unknown download type %
l
u
\n
"
,
info
->
dwDLType
);
return
DMUS_E_UNKNOWNDOWNLOAD
;
}
...
...
@@ -273,7 +273,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_PlayBuffer(IDirectMusicSynth8 *ifac
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
FIXME
(
"(%p
)->(0x%s, %p, %
u): stub
\n
"
,
This
,
wine_dbgstr_longlong
(
rt
),
buffer
,
size
);
FIXME
(
"(%p
, 0x%s, %p, %l
u): stub
\n
"
,
This
,
wine_dbgstr_longlong
(
rt
),
buffer
,
size
);
return
S_OK
;
}
...
...
@@ -397,7 +397,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Render(IDirectMusicSynth8 *iface, s
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
FIXME
(
"(%p
)->(%p, %
d, 0x%s): stub
\n
"
,
This
,
buffer
,
length
,
wine_dbgstr_longlong
(
position
));
FIXME
(
"(%p
, %p, %l
d, 0x%s): stub
\n
"
,
This
,
buffer
,
length
,
wine_dbgstr_longlong
(
position
));
return
S_OK
;
}
...
...
@@ -418,7 +418,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_GetChannelPriority(IDirectMusicSynt
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
FIXME
(
"(%p
)->(%d, %
d, %p): stub
\n
"
,
This
,
channel_group
,
channel
,
priority
);
FIXME
(
"(%p
, %ld, %l
d, %p): stub
\n
"
,
This
,
channel_group
,
channel
,
priority
);
return
S_OK
;
}
...
...
@@ -451,7 +451,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_PlayVoice(IDirectMusicSynth8 *iface
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
FIXME
(
"(%p
)->(0x%s, %d, %d, %d, %d, %i, %i,
0x%s, 0x%s, 0x%s): stub
\n
"
,
FIXME
(
"(%p
, 0x%s, %ld, %ld, %ld, %ld, %li, %li,
0x%s, 0x%s, 0x%s): stub
\n
"
,
This
,
wine_dbgstr_longlong
(
ref_time
),
voice_id
,
channel_group
,
channel
,
dwDLId
,
prPitch
,
vrVolume
,
wine_dbgstr_longlong
(
stVoiceStart
),
wine_dbgstr_longlong
(
stLoopStart
),
wine_dbgstr_longlong
(
stLoopEnd
));
...
...
@@ -463,7 +463,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_StopVoice(IDirectMusicSynth8 *iface
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
FIXME
(
"(%p
)->(0x%s, %
d): stub
\n
"
,
This
,
wine_dbgstr_longlong
(
ref_time
),
voice_id
);
FIXME
(
"(%p
, 0x%s, %l
d): stub
\n
"
,
This
,
wine_dbgstr_longlong
(
ref_time
),
voice_id
);
return
S_OK
;
}
...
...
@@ -473,7 +473,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_GetVoiceState(IDirectMusicSynth8 *i
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
FIXME
(
"(%p
)->(%p, %
d, %p): stub
\n
"
,
This
,
dwVoice
,
cbVoice
,
dwVoiceState
);
FIXME
(
"(%p
, %p, %l
d, %p): stub
\n
"
,
This
,
dwVoice
,
cbVoice
,
dwVoiceState
);
return
S_OK
;
}
...
...
@@ -483,7 +483,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_Refresh(IDirectMusicSynth8 *iface,
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
FIXME
(
"(%p
)->(%d, %
d): stub
\n
"
,
This
,
download_id
,
flags
);
FIXME
(
"(%p
, %ld, %l
d): stub
\n
"
,
This
,
download_id
,
flags
);
return
S_OK
;
}
...
...
@@ -493,7 +493,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_AssignChannelToBuses(IDirectMusicSy
{
IDirectMusicSynth8Impl
*
This
=
impl_from_IDirectMusicSynth8
(
iface
);
FIXME
(
"(%p
)->(%d, %d, %p, %
d): stub
\n
"
,
This
,
channel_group
,
channel
,
pdwBuses
,
cBuses
);
FIXME
(
"(%p
, %ld, %ld, %p, %l
d): stub
\n
"
,
This
,
channel_group
,
channel
,
pdwBuses
,
cBuses
);
return
S_OK
;
}
...
...
@@ -555,13 +555,13 @@ static ULONG WINAPI DMSynthImpl_IKsControl_Release(IKsControl* iface)
static
HRESULT
WINAPI
DMSynthImpl_IKsControl_KsProperty
(
IKsControl
*
iface
,
PKSPROPERTY
Property
,
ULONG
PropertyLength
,
LPVOID
PropertyData
,
ULONG
DataLength
,
ULONG
*
BytesReturned
)
{
TRACE
(
"(%p
)->(%p, %u, %p, %
u, %p)
\n
"
,
iface
,
Property
,
PropertyLength
,
PropertyData
,
DataLength
,
BytesReturned
);
TRACE
(
"(%p
, %p, %lu, %p, %l
u, %p)
\n
"
,
iface
,
Property
,
PropertyLength
,
PropertyData
,
DataLength
,
BytesReturned
);
TRACE
(
"Property = %s - %
u - %
u
\n
"
,
debugstr_guid
(
&
Property
->
u
.
s
.
Set
),
Property
->
u
.
s
.
Id
,
Property
->
u
.
s
.
Flags
);
TRACE
(
"Property = %s - %
lu - %l
u
\n
"
,
debugstr_guid
(
&
Property
->
u
.
s
.
Set
),
Property
->
u
.
s
.
Id
,
Property
->
u
.
s
.
Flags
);
if
(
Property
->
u
.
s
.
Flags
!=
KSPROPERTY_TYPE_GET
)
{
FIXME
(
"Property flags %u not yet supported
\n
"
,
Property
->
u
.
s
.
Flags
);
FIXME
(
"Property flags %
l
u not yet supported
\n
"
,
Property
->
u
.
s
.
Flags
);
return
S_FALSE
;
}
...
...
@@ -606,7 +606,7 @@ static HRESULT WINAPI DMSynthImpl_IKsControl_KsProperty(IKsControl* iface, PKSPR
static
HRESULT
WINAPI
DMSynthImpl_IKsControl_KsMethod
(
IKsControl
*
iface
,
PKSMETHOD
Method
,
ULONG
MethodLength
,
LPVOID
MethodData
,
ULONG
DataLength
,
ULONG
*
BytesReturned
)
{
FIXME
(
"(%p
)->(%p, %u, %p, %
u, %p): stub
\n
"
,
iface
,
Method
,
MethodLength
,
MethodData
,
DataLength
,
BytesReturned
);
FIXME
(
"(%p
, %p, %lu, %p, %l
u, %p): stub
\n
"
,
iface
,
Method
,
MethodLength
,
MethodData
,
DataLength
,
BytesReturned
);
return
E_NOTIMPL
;
}
...
...
@@ -614,7 +614,7 @@ static HRESULT WINAPI DMSynthImpl_IKsControl_KsMethod(IKsControl* iface, PKSMETH
static
HRESULT
WINAPI
DMSynthImpl_IKsControl_KsEvent
(
IKsControl
*
iface
,
PKSEVENT
Event
,
ULONG
EventLength
,
LPVOID
EventData
,
ULONG
DataLength
,
ULONG
*
BytesReturned
)
{
FIXME
(
"(%p
)->(%p, %u, %p, %
u, %p): stub
\n
"
,
iface
,
Event
,
EventLength
,
EventData
,
DataLength
,
BytesReturned
);
FIXME
(
"(%p
, %p, %lu, %p, %l
u, %p): stub
\n
"
,
iface
,
Event
,
EventLength
,
EventData
,
DataLength
,
BytesReturned
);
return
E_NOTIMPL
;
}
...
...
dlls/dmsynth/synthsink.c
View file @
26a9ce80
...
...
@@ -66,7 +66,7 @@ static ULONG WINAPI IDirectMusicSynthSinkImpl_AddRef(IDirectMusicSynthSink *ifac
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)
->(): new ref = %
u
\n
"
,
This
,
ref
);
TRACE
(
"(%p)
: new ref = %l
u
\n
"
,
This
,
ref
);
return
ref
;
}
...
...
@@ -76,7 +76,7 @@ static ULONG WINAPI IDirectMusicSynthSinkImpl_Release(IDirectMusicSynthSink *ifa
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)
->(): new ref = %
u
\n
"
,
This
,
ref
);
TRACE
(
"(%p)
: new ref = %l
u
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
This
->
latency_clock
)
...
...
@@ -232,13 +232,13 @@ static ULONG WINAPI DMSynthSinkImpl_IKsControl_Release(IKsControl* iface)
static
HRESULT
WINAPI
DMSynthSinkImpl_IKsControl_KsProperty
(
IKsControl
*
iface
,
PKSPROPERTY
Property
,
ULONG
PropertyLength
,
LPVOID
PropertyData
,
ULONG
DataLength
,
ULONG
*
BytesReturned
)
{
TRACE
(
"(%p
)->(%p, %u, %p, %
u, %p)
\n
"
,
iface
,
Property
,
PropertyLength
,
PropertyData
,
DataLength
,
BytesReturned
);
TRACE
(
"(%p
, %p, %lu, %p, %l
u, %p)
\n
"
,
iface
,
Property
,
PropertyLength
,
PropertyData
,
DataLength
,
BytesReturned
);
TRACE
(
"Property = %s - %
u - %
u
\n
"
,
debugstr_guid
(
&
Property
->
u
.
s
.
Set
),
Property
->
u
.
s
.
Id
,
Property
->
u
.
s
.
Flags
);
TRACE
(
"Property = %s - %
lu - %l
u
\n
"
,
debugstr_guid
(
&
Property
->
u
.
s
.
Set
),
Property
->
u
.
s
.
Id
,
Property
->
u
.
s
.
Flags
);
if
(
Property
->
u
.
s
.
Flags
!=
KSPROPERTY_TYPE_GET
)
{
FIXME
(
"Property flags %u not yet supported
\n
"
,
Property
->
u
.
s
.
Flags
);
FIXME
(
"Property flags %
l
u not yet supported
\n
"
,
Property
->
u
.
s
.
Flags
);
return
S_FALSE
;
}
...
...
@@ -263,7 +263,7 @@ static HRESULT WINAPI DMSynthSinkImpl_IKsControl_KsProperty(IKsControl* iface, P
static
HRESULT
WINAPI
DMSynthSinkImpl_IKsControl_KsMethod
(
IKsControl
*
iface
,
PKSMETHOD
Method
,
ULONG
MethodLength
,
LPVOID
MethodData
,
ULONG
DataLength
,
ULONG
*
BytesReturned
)
{
FIXME
(
"(%p
)->(%p, %u, %p, %
u, %p): stub
\n
"
,
iface
,
Method
,
MethodLength
,
MethodData
,
DataLength
,
BytesReturned
);
FIXME
(
"(%p
, %p, %lu, %p, %l
u, %p): stub
\n
"
,
iface
,
Method
,
MethodLength
,
MethodData
,
DataLength
,
BytesReturned
);
return
E_NOTIMPL
;
}
...
...
@@ -271,7 +271,7 @@ static HRESULT WINAPI DMSynthSinkImpl_IKsControl_KsMethod(IKsControl* iface, PKS
static
HRESULT
WINAPI
DMSynthSinkImpl_IKsControl_KsEvent
(
IKsControl
*
iface
,
PKSEVENT
Event
,
ULONG
EventLength
,
LPVOID
EventData
,
ULONG
DataLength
,
ULONG
*
BytesReturned
)
{
FIXME
(
"(%p
)->(%p, %u, %p, %
u, %p): stub
\n
"
,
iface
,
Event
,
EventLength
,
EventData
,
DataLength
,
BytesReturned
);
FIXME
(
"(%p
, %p, %lu, %p, %l
u, %p): stub
\n
"
,
iface
,
Event
,
EventLength
,
EventData
,
DataLength
,
BytesReturned
);
return
E_NOTIMPL
;
}
...
...
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