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
45f61965
Commit
45f61965
authored
Aug 31, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Implement synth port IDirectMusicPortDownload_GetDLId.
parent
77074949
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
port.c
dlls/dmusic/port.c
+10
-2
dmusic.c
dlls/dmusic/tests/dmusic.c
+4
-4
No files found.
dlls/dmusic/port.c
View file @
45f61965
...
...
@@ -40,6 +40,8 @@ struct synth_port {
DMUS_PORTPARAMS
params
;
int
nrofgroups
;
DMUSIC_PRIVATE_CHANNEL_GROUP
group
[
1
];
DWORD
next_dlid
;
};
static
inline
IDirectMusicDownloadedInstrumentImpl
*
impl_from_IDirectMusicDownloadedInstrument
(
IDirectMusicDownloadedInstrument
*
iface
)
...
...
@@ -595,11 +597,17 @@ static HRESULT WINAPI synth_port_download_AllocateBuffer(IDirectMusicPortDownloa
return
S_OK
;
}
static
HRESULT
WINAPI
synth_port_download_GetDLId
(
IDirectMusicPortDownload
*
iface
,
DWORD
*
start_DLId
,
DWORD
count
)
static
HRESULT
WINAPI
synth_port_download_GetDLId
(
IDirectMusicPortDownload
*
iface
,
DWORD
*
first
,
DWORD
count
)
{
struct
synth_port
*
This
=
synth_from_IDirectMusicPortDownload
(
iface
);
FIXME
(
"(%p/%p, %p, %lu): stub
\n
"
,
iface
,
This
,
start_DLId
,
count
);
TRACE
(
"(%p/%p, %p, %lu)
\n
"
,
iface
,
This
,
first
,
count
);
if
(
!
first
)
return
E_POINTER
;
if
(
!
count
)
return
E_INVALIDARG
;
*
first
=
This
->
next_dlid
;
This
->
next_dlid
+=
count
;
return
S_OK
;
}
...
...
dlls/dmusic/tests/dmusic.c
View file @
45f61965
...
...
@@ -1081,14 +1081,14 @@ static void test_port_download(void)
/* GetDLId allocates the given number of slots and returns only the first */
hr
=
IDirectMusicPortDownload_GetDLId
(
port
,
NULL
,
0
);
todo_wine
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"got %#lx
\n
"
,
hr
);
hr
=
IDirectMusicPortDownload_GetDLId
(
port
,
ids
,
0
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"got %#lx
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"got %#lx
\n
"
,
hr
);
memset
(
ids
,
0xcc
,
sizeof
(
ids
));
hr
=
IDirectMusicPortDownload_GetDLId
(
port
,
ids
,
4
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
ids
[
0
]
==
0
,
"got %#lx
\n
"
,
ids
[
0
]);
ok
(
ids
[
0
]
==
0
,
"got %#lx
\n
"
,
ids
[
0
]);
ok
(
ids
[
1
]
==
0xcccccccc
,
"got %#lx
\n
"
,
ids
[
1
]);
/* GetBuffer looks up allocated ids to find downloaded buffers */
...
...
@@ -1168,7 +1168,7 @@ static void test_port_download(void)
/* DLIds are never released */
hr
=
IDirectMusicPortDownload_GetDLId
(
port
,
ids
,
1
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
todo_wine
ok
(
ids
[
0
]
==
4
,
"got %#lx
\n
"
,
ids
[
0
]);
ok
(
ids
[
0
]
==
4
,
"got %#lx
\n
"
,
ids
[
0
]);
IDirectMusicDownload_Release
(
download
);
...
...
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