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
9abd659e
Commit
9abd659e
authored
Aug 31, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Rename IDirectMusicInstrumentImpl method prefix to instrument.
parent
d6dc41c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
18 deletions
+15
-18
collection.c
dlls/dmusic/collection.c
+1
-1
dmusic_private.h
dlls/dmusic/dmusic_private.h
+1
-2
instrument.c
dlls/dmusic/instrument.c
+13
-15
No files found.
dlls/dmusic/collection.c
View file @
9abd659e
...
@@ -115,7 +115,7 @@ static HRESULT WINAPI collection_GetInstrument(IDirectMusicCollection *iface,
...
@@ -115,7 +115,7 @@ static HRESULT WINAPI collection_GetInstrument(IDirectMusicCollection *iface,
if
(
patch
==
inst_patch
)
{
if
(
patch
==
inst_patch
)
{
*
instrument
=
inst_entry
->
pInstrument
;
*
instrument
=
inst_entry
->
pInstrument
;
IDirectMusicInstrument_AddRef
(
inst_entry
->
pInstrument
);
IDirectMusicInstrument_AddRef
(
inst_entry
->
pInstrument
);
IDirectMusicInstrumentImpl_CustomL
oad
(
inst_entry
->
pInstrument
,
This
->
pStm
);
instrument_l
oad
(
inst_entry
->
pInstrument
,
This
->
pStm
);
TRACE
(
": returning instrument %p
\n
"
,
*
instrument
);
TRACE
(
": returning instrument %p
\n
"
,
*
instrument
);
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/dmusic/dmusic_private.h
View file @
9abd659e
...
@@ -201,8 +201,7 @@ static inline IDirectMusicInstrumentImpl *impl_from_IDirectMusicInstrument(IDire
...
@@ -201,8 +201,7 @@ static inline IDirectMusicInstrumentImpl *impl_from_IDirectMusicInstrument(IDire
return
CONTAINING_RECORD
(
iface
,
IDirectMusicInstrumentImpl
,
IDirectMusicInstrument_iface
);
return
CONTAINING_RECORD
(
iface
,
IDirectMusicInstrumentImpl
,
IDirectMusicInstrument_iface
);
}
}
/* custom :) */
extern
HRESULT
instrument_load
(
IDirectMusicInstrument
*
iface
,
IStream
*
stream
);
extern
HRESULT
IDirectMusicInstrumentImpl_CustomLoad
(
IDirectMusicInstrument
*
iface
,
IStream
*
stream
);
/*****************************************************************************
/*****************************************************************************
* Misc.
* Misc.
...
...
dlls/dmusic/instrument.c
View file @
9abd659e
...
@@ -25,8 +25,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dmusic);
...
@@ -25,8 +25,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dmusic);
static
const
GUID
IID_IDirectMusicInstrumentPRIVATE
=
{
0xbcb20080
,
0xa40c
,
0x11d1
,
{
0x86
,
0xbc
,
0x00
,
0xc0
,
0x4f
,
0xbf
,
0x8f
,
0xef
}
};
static
const
GUID
IID_IDirectMusicInstrumentPRIVATE
=
{
0xbcb20080
,
0xa40c
,
0x11d1
,
{
0x86
,
0xbc
,
0x00
,
0xc0
,
0x4f
,
0xbf
,
0x8f
,
0xef
}
};
/* IDirectMusicInstrument IUnknown part: */
static
HRESULT
WINAPI
instrument_QueryInterface
(
LPDIRECTMUSICINSTRUMENT
iface
,
REFIID
riid
,
LPVOID
*
ret_iface
)
static
HRESULT
WINAPI
IDirectMusicInstrumentImpl_QueryInterface
(
LPDIRECTMUSICINSTRUMENT
iface
,
REFIID
riid
,
LPVOID
*
ret_iface
)
{
{
TRACE
(
"(%p)->(%s, %p)
\n
"
,
iface
,
debugstr_dmguid
(
riid
),
ret_iface
);
TRACE
(
"(%p)->(%s, %p)
\n
"
,
iface
,
debugstr_dmguid
(
riid
),
ret_iface
);
...
@@ -56,7 +55,7 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_QueryInterface(LPDIRECTMUSICINS
...
@@ -56,7 +55,7 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_QueryInterface(LPDIRECTMUSICINS
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
}
static
ULONG
WINAPI
IDirectMusicInstrumentImpl
_AddRef
(
LPDIRECTMUSICINSTRUMENT
iface
)
static
ULONG
WINAPI
instrument
_AddRef
(
LPDIRECTMUSICINSTRUMENT
iface
)
{
{
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
@@ -66,7 +65,7 @@ static ULONG WINAPI IDirectMusicInstrumentImpl_AddRef(LPDIRECTMUSICINSTRUMENT if
...
@@ -66,7 +65,7 @@ static ULONG WINAPI IDirectMusicInstrumentImpl_AddRef(LPDIRECTMUSICINSTRUMENT if
return
ref
;
return
ref
;
}
}
static
ULONG
WINAPI
IDirectMusicInstrumentImpl
_Release
(
LPDIRECTMUSICINSTRUMENT
iface
)
static
ULONG
WINAPI
instrument
_Release
(
LPDIRECTMUSICINSTRUMENT
iface
)
{
{
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
@@ -87,8 +86,7 @@ static ULONG WINAPI IDirectMusicInstrumentImpl_Release(LPDIRECTMUSICINSTRUMENT i
...
@@ -87,8 +86,7 @@ static ULONG WINAPI IDirectMusicInstrumentImpl_Release(LPDIRECTMUSICINSTRUMENT i
return
ref
;
return
ref
;
}
}
/* IDirectMusicInstrumentImpl IDirectMusicInstrument part: */
static
HRESULT
WINAPI
instrument_GetPatch
(
LPDIRECTMUSICINSTRUMENT
iface
,
DWORD
*
pdwPatch
)
static
HRESULT
WINAPI
IDirectMusicInstrumentImpl_GetPatch
(
LPDIRECTMUSICINSTRUMENT
iface
,
DWORD
*
pdwPatch
)
{
{
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
...
@@ -99,7 +97,7 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_GetPatch(LPDIRECTMUSICINSTRUMEN
...
@@ -99,7 +97,7 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_GetPatch(LPDIRECTMUSICINSTRUMEN
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
IDirectMusicInstrumentImpl
_SetPatch
(
LPDIRECTMUSICINSTRUMENT
iface
,
DWORD
dwPatch
)
static
HRESULT
WINAPI
instrument
_SetPatch
(
LPDIRECTMUSICINSTRUMENT
iface
,
DWORD
dwPatch
)
{
{
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
...
@@ -110,13 +108,13 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_SetPatch(LPDIRECTMUSICINSTRUMEN
...
@@ -110,13 +108,13 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_SetPatch(LPDIRECTMUSICINSTRUMEN
return
S_OK
;
return
S_OK
;
}
}
static
const
IDirectMusicInstrumentVtbl
DirectMusicInstrument_V
tbl
=
static
const
IDirectMusicInstrumentVtbl
instrument_v
tbl
=
{
{
IDirectMusicInstrumentImpl
_QueryInterface
,
instrument
_QueryInterface
,
IDirectMusicInstrumentImpl
_AddRef
,
instrument
_AddRef
,
IDirectMusicInstrumentImpl
_Release
,
instrument
_Release
,
IDirectMusicInstrumentImpl
_GetPatch
,
instrument
_GetPatch
,
IDirectMusicInstrumentImpl_SetPatch
instrument_SetPatch
,
};
};
HRESULT
instrument_create
(
IDirectMusicInstrument
**
ret_iface
)
HRESULT
instrument_create
(
IDirectMusicInstrument
**
ret_iface
)
...
@@ -125,7 +123,7 @@ HRESULT instrument_create(IDirectMusicInstrument **ret_iface)
...
@@ -125,7 +123,7 @@ HRESULT instrument_create(IDirectMusicInstrument **ret_iface)
*
ret_iface
=
NULL
;
*
ret_iface
=
NULL
;
if
(
!
(
dminst
=
calloc
(
1
,
sizeof
(
*
dminst
))))
return
E_OUTOFMEMORY
;
if
(
!
(
dminst
=
calloc
(
1
,
sizeof
(
*
dminst
))))
return
E_OUTOFMEMORY
;
dminst
->
IDirectMusicInstrument_iface
.
lpVtbl
=
&
DirectMusicInstrument_V
tbl
;
dminst
->
IDirectMusicInstrument_iface
.
lpVtbl
=
&
instrument_v
tbl
;
dminst
->
ref
=
1
;
dminst
->
ref
=
1
;
TRACE
(
"Created DirectMusicInstrument %p
\n
"
,
dminst
);
TRACE
(
"Created DirectMusicInstrument %p
\n
"
,
dminst
);
...
@@ -278,7 +276,7 @@ static HRESULT load_articulation(IDirectMusicInstrumentImpl *This, IStream *stre
...
@@ -278,7 +276,7 @@ static HRESULT load_articulation(IDirectMusicInstrumentImpl *This, IStream *stre
}
}
/* Function that loads all instrument data and which is called from IDirectMusicCollection_GetInstrument as in native */
/* Function that loads all instrument data and which is called from IDirectMusicCollection_GetInstrument as in native */
HRESULT
IDirectMusicInstrumentImpl_CustomL
oad
(
IDirectMusicInstrument
*
iface
,
IStream
*
stream
)
HRESULT
instrument_l
oad
(
IDirectMusicInstrument
*
iface
,
IStream
*
stream
)
{
{
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
HRESULT
hr
;
HRESULT
hr
;
...
...
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