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
845bf2ff
Commit
845bf2ff
authored
Oct 05, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Move the SynthPortImpl struct to where it is used.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ca87c493
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
24 deletions
+16
-24
dmusic_private.h
dlls/dmusic/dmusic_private.h
+0
-24
port.c
dlls/dmusic/port.c
+16
-0
No files found.
dlls/dmusic/dmusic_private.h
View file @
845bf2ff
...
...
@@ -53,8 +53,6 @@ typedef struct IReferenceClockImpl IReferenceClockImpl;
typedef
struct
IDirectMusicInstrumentImpl
IDirectMusicInstrumentImpl
;
typedef
struct
SynthPortImpl
SynthPortImpl
;
/*****************************************************************************
* Some stuff to make my life easier :=)
*/
...
...
@@ -159,28 +157,6 @@ struct IDirectMusicDownloadImpl {
/* IDirectMusicDownloadImpl fields */
};
/*****************************************************************************
* SynthPortImpl implementation structure
*/
struct
SynthPortImpl
{
/* IUnknown fields */
IDirectMusicPort
IDirectMusicPort_iface
;
IDirectMusicPortDownload
IDirectMusicPortDownload_iface
;
IDirectMusicThru
IDirectMusicThru_iface
;
LONG
ref
;
/* IDirectMusicPort fields */
IDirectSound
*
pDirectSound
;
IReferenceClock
*
pLatencyClock
;
IDirectMusicSynth
*
synth
;
IDirectMusicSynthSink
*
synth_sink
;
BOOL
fActive
;
DMUS_PORTCAPS
caps
;
DMUS_PORTPARAMS
params
;
int
nrofgroups
;
DMUSIC_PRIVATE_CHANNEL_GROUP
group
[
1
];
};
/** Internal factory */
extern
HRESULT
DMUSIC_CreateSynthPortImpl
(
LPCGUID
guid
,
LPVOID
*
object
,
LPUNKNOWN
unkouter
,
LPDMUS_PORTPARAMS
port_params
,
LPDMUS_PORTCAPS
port_caps
,
DWORD
device
)
DECLSPEC_HIDDEN
;
extern
HRESULT
DMUSIC_CreateMidiOutPortImpl
(
LPCGUID
guid
,
LPVOID
*
object
,
LPUNKNOWN
unkouter
,
LPDMUS_PORTPARAMS
port_params
,
LPDMUS_PORTCAPS
port_caps
,
DWORD
device
)
DECLSPEC_HIDDEN
;
...
...
dlls/dmusic/port.c
View file @
845bf2ff
...
...
@@ -24,6 +24,22 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dmusic
);
typedef
struct
SynthPortImpl
{
IDirectMusicPort
IDirectMusicPort_iface
;
IDirectMusicPortDownload
IDirectMusicPortDownload_iface
;
IDirectMusicThru
IDirectMusicThru_iface
;
LONG
ref
;
IDirectSound
*
pDirectSound
;
IReferenceClock
*
pLatencyClock
;
IDirectMusicSynth
*
synth
;
IDirectMusicSynthSink
*
synth_sink
;
BOOL
fActive
;
DMUS_PORTCAPS
caps
;
DMUS_PORTPARAMS
params
;
int
nrofgroups
;
DMUSIC_PRIVATE_CHANNEL_GROUP
group
[
1
];
}
SynthPortImpl
;
static
inline
IDirectMusicDownloadedInstrumentImpl
*
impl_from_IDirectMusicDownloadedInstrument
(
IDirectMusicDownloadedInstrument
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirectMusicDownloadedInstrumentImpl
,
IDirectMusicDownloadedInstrument_iface
);
...
...
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