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
Show 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,
if
(
patch
==
inst_patch
)
{
*
instrument
=
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
);
return
S_OK
;
}
...
...
dlls/dmusic/dmusic_private.h
View file @
9abd659e
...
...
@@ -201,8 +201,7 @@ static inline IDirectMusicInstrumentImpl *impl_from_IDirectMusicInstrument(IDire
return
CONTAINING_RECORD
(
iface
,
IDirectMusicInstrumentImpl
,
IDirectMusicInstrument_iface
);
}
/* custom :) */
extern
HRESULT
IDirectMusicInstrumentImpl_CustomLoad
(
IDirectMusicInstrument
*
iface
,
IStream
*
stream
);
extern
HRESULT
instrument_load
(
IDirectMusicInstrument
*
iface
,
IStream
*
stream
);
/*****************************************************************************
* Misc.
...
...
dlls/dmusic/instrument.c
View file @
9abd659e
...
...
@@ -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
}
};
/* IDirectMusicInstrument IUnknown part: */
static
HRESULT
WINAPI
IDirectMusicInstrumentImpl_QueryInterface
(
LPDIRECTMUSICINSTRUMENT
iface
,
REFIID
riid
,
LPVOID
*
ret_iface
)
static
HRESULT
WINAPI
instrument_QueryInterface
(
LPDIRECTMUSICINSTRUMENT
iface
,
REFIID
riid
,
LPVOID
*
ret_iface
)
{
TRACE
(
"(%p)->(%s, %p)
\n
"
,
iface
,
debugstr_dmguid
(
riid
),
ret_iface
);
...
...
@@ -56,7 +55,7 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_QueryInterface(LPDIRECTMUSICINS
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IDirectMusicInstrumentImpl
_AddRef
(
LPDIRECTMUSICINSTRUMENT
iface
)
static
ULONG
WINAPI
instrument
_AddRef
(
LPDIRECTMUSICINSTRUMENT
iface
)
{
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -66,7 +65,7 @@ static ULONG WINAPI IDirectMusicInstrumentImpl_AddRef(LPDIRECTMUSICINSTRUMENT if
return
ref
;
}
static
ULONG
WINAPI
IDirectMusicInstrumentImpl
_Release
(
LPDIRECTMUSICINSTRUMENT
iface
)
static
ULONG
WINAPI
instrument
_Release
(
LPDIRECTMUSICINSTRUMENT
iface
)
{
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -87,8 +86,7 @@ static ULONG WINAPI IDirectMusicInstrumentImpl_Release(LPDIRECTMUSICINSTRUMENT i
return
ref
;
}
/* IDirectMusicInstrumentImpl IDirectMusicInstrument part: */
static
HRESULT
WINAPI
IDirectMusicInstrumentImpl_GetPatch
(
LPDIRECTMUSICINSTRUMENT
iface
,
DWORD
*
pdwPatch
)
static
HRESULT
WINAPI
instrument_GetPatch
(
LPDIRECTMUSICINSTRUMENT
iface
,
DWORD
*
pdwPatch
)
{
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
...
...
@@ -99,7 +97,7 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_GetPatch(LPDIRECTMUSICINSTRUMEN
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
);
...
...
@@ -110,13 +108,13 @@ static HRESULT WINAPI IDirectMusicInstrumentImpl_SetPatch(LPDIRECTMUSICINSTRUMEN
return
S_OK
;
}
static
const
IDirectMusicInstrumentVtbl
DirectMusicInstrument_V
tbl
=
static
const
IDirectMusicInstrumentVtbl
instrument_v
tbl
=
{
IDirectMusicInstrumentImpl
_QueryInterface
,
IDirectMusicInstrumentImpl
_AddRef
,
IDirectMusicInstrumentImpl
_Release
,
IDirectMusicInstrumentImpl
_GetPatch
,
IDirectMusicInstrumentImpl_SetPatch
instrument
_QueryInterface
,
instrument
_AddRef
,
instrument
_Release
,
instrument
_GetPatch
,
instrument_SetPatch
,
};
HRESULT
instrument_create
(
IDirectMusicInstrument
**
ret_iface
)
...
...
@@ -125,7 +123,7 @@ HRESULT instrument_create(IDirectMusicInstrument **ret_iface)
*
ret_iface
=
NULL
;
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
;
TRACE
(
"Created DirectMusicInstrument %p
\n
"
,
dminst
);
...
...
@@ -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 */
HRESULT
IDirectMusicInstrumentImpl_CustomL
oad
(
IDirectMusicInstrument
*
iface
,
IStream
*
stream
)
HRESULT
instrument_l
oad
(
IDirectMusicInstrument
*
iface
,
IStream
*
stream
)
{
IDirectMusicInstrumentImpl
*
This
=
impl_from_IDirectMusicInstrument
(
iface
);
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