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
19cb2d21
Commit
19cb2d21
authored
May 14, 2012
by
Christian Costa
Committed by
Alexandre Julliard
May 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Implement IDirectMusicBuffer_SetUsedBytes.
parent
f0324c96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
buffer.c
dlls/dmusic/buffer.c
+10
-3
No files found.
dlls/dmusic/buffer.c
View file @
19cb2d21
/* IDirectMusicBuffer Implementation
/*
* IDirectMusicBuffer Implementation
*
*
* Copyright (C) 2003-2004 Rok Mandeljc
* Copyright (C) 2003-2004 Rok Mandeljc
* Copyright (C) 2012 Christian Costa
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -241,11 +243,16 @@ static HRESULT WINAPI IDirectMusicBufferImpl_SetStartTime(LPDIRECTMUSICBUFFER if
...
@@ -241,11 +243,16 @@ static HRESULT WINAPI IDirectMusicBufferImpl_SetStartTime(LPDIRECTMUSICBUFFER if
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
IDirectMusicBufferImpl_SetUsedBytes
(
LPDIRECTMUSICBUFFER
iface
,
DWORD
cb
)
static
HRESULT
WINAPI
IDirectMusicBufferImpl_SetUsedBytes
(
LPDIRECTMUSICBUFFER
iface
,
DWORD
used_bytes
)
{
{
IDirectMusicBufferImpl
*
This
=
impl_from_IDirectMusicBuffer
(
iface
);
IDirectMusicBufferImpl
*
This
=
impl_from_IDirectMusicBuffer
(
iface
);
FIXME
(
"(%p, %d): stub
\n
"
,
This
,
cb
);
TRACE
(
"(%p)->(%u)
\n
"
,
iface
,
used_bytes
);
if
(
used_bytes
>
This
->
size
)
return
DMUS_E_BUFFER_FULL
;
This
->
write_pos
=
used_bytes
;
return
S_OK
;
return
S_OK
;
}
}
...
...
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