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
9b4f9978
Commit
9b4f9978
authored
Mar 08, 2007
by
Tomas Carnecky
Committed by
Alexandre Julliard
Mar 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Update prototypes for IDirectSoundBuffer::Lock/Unlock.
parent
849ee1c2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
buffer.c
dlls/dsound/buffer.c
+3
-3
primary.c
dlls/dsound/primary.c
+1
-1
dsoundrender.c
dlls/quartz/dsoundrender.c
+1
-1
soundblaster.c
dlls/winedos/soundblaster.c
+1
-1
dsound.h
include/dsound.h
+4
-4
No files found.
dlls/dsound/buffer.c
View file @
9b4f9978
...
@@ -565,7 +565,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetFormat(
...
@@ -565,7 +565,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetFormat(
}
}
static
HRESULT
WINAPI
IDirectSoundBufferImpl_Lock
(
static
HRESULT
WINAPI
IDirectSoundBufferImpl_Lock
(
LPDIRECTSOUNDBUFFER8
iface
,
DWORD
writecursor
,
DWORD
writebytes
,
LPVOID
lplpaudioptr1
,
LPDWORD
audiobytes1
,
LPVOID
lplpaudioptr2
,
LPDWORD
audiobytes2
,
DWORD
flags
LPDIRECTSOUNDBUFFER8
iface
,
DWORD
writecursor
,
DWORD
writebytes
,
LPVOID
*
lplpaudioptr1
,
LPDWORD
audiobytes1
,
LPVOID
*
lplpaudioptr2
,
LPDWORD
audiobytes2
,
DWORD
flags
)
{
)
{
HRESULT
hres
=
DS_OK
;
HRESULT
hres
=
DS_OK
;
IDirectSoundBufferImpl
*
This
=
(
IDirectSoundBufferImpl
*
)
iface
;
IDirectSoundBufferImpl
*
This
=
(
IDirectSoundBufferImpl
*
)
iface
;
...
@@ -1450,9 +1450,9 @@ static HRESULT WINAPI SecondaryBufferImpl_Lock(
...
@@ -1450,9 +1450,9 @@ static HRESULT WINAPI SecondaryBufferImpl_Lock(
LPDIRECTSOUNDBUFFER8
iface
,
LPDIRECTSOUNDBUFFER8
iface
,
DWORD
writecursor
,
DWORD
writecursor
,
DWORD
writebytes
,
DWORD
writebytes
,
LPVOID
lplpaudioptr1
,
LPVOID
*
lplpaudioptr1
,
LPDWORD
audiobytes1
,
LPDWORD
audiobytes1
,
LPVOID
lplpaudioptr2
,
LPVOID
*
lplpaudioptr2
,
LPDWORD
audiobytes2
,
LPDWORD
audiobytes2
,
DWORD
dwFlags
)
DWORD
dwFlags
)
{
{
...
...
dlls/dsound/primary.c
View file @
9b4f9978
...
@@ -663,7 +663,7 @@ static HRESULT WINAPI PrimaryBufferImpl_GetFormat(
...
@@ -663,7 +663,7 @@ static HRESULT WINAPI PrimaryBufferImpl_GetFormat(
}
}
static
HRESULT
WINAPI
PrimaryBufferImpl_Lock
(
static
HRESULT
WINAPI
PrimaryBufferImpl_Lock
(
LPDIRECTSOUNDBUFFER8
iface
,
DWORD
writecursor
,
DWORD
writebytes
,
LPVOID
lplpaudioptr1
,
LPDWORD
audiobytes1
,
LPVOID
lplpaudioptr2
,
LPDWORD
audiobytes2
,
DWORD
flags
LPDIRECTSOUNDBUFFER8
iface
,
DWORD
writecursor
,
DWORD
writebytes
,
LPVOID
*
lplpaudioptr1
,
LPDWORD
audiobytes1
,
LPVOID
*
lplpaudioptr2
,
LPDWORD
audiobytes2
,
DWORD
flags
)
{
)
{
HRESULT
hres
;
HRESULT
hres
;
DirectSoundDevice
*
device
=
((
PrimaryBufferImpl
*
)
iface
)
->
device
;
DirectSoundDevice
*
device
=
((
PrimaryBufferImpl
*
)
iface
)
->
device
;
...
...
dlls/quartz/dsoundrender.c
View file @
9b4f9978
...
@@ -198,7 +198,7 @@ static HRESULT DSoundRender_SendSampleData(DSoundRenderImpl* This, LPBYTE data,
...
@@ -198,7 +198,7 @@ static HRESULT DSoundRender_SendSampleData(DSoundRenderImpl* This, LPBYTE data,
}
}
size2
=
min
(
buf_free
,
size
);
size2
=
min
(
buf_free
,
size
);
hr
=
IDirectSoundBuffer_Lock
(
This
->
dsbuffer
,
This
->
write_pos
,
size2
,
&
lpbuf1
,
&
dwsize1
,
&
lpbuf2
,
&
dwsize2
,
0
);
hr
=
IDirectSoundBuffer_Lock
(
This
->
dsbuffer
,
This
->
write_pos
,
size2
,
(
LPVOID
*
)
&
lpbuf1
,
&
dwsize1
,
(
LPVOID
*
)
&
lpbuf2
,
&
dwsize2
,
0
);
if
(
hr
!=
DS_OK
)
{
if
(
hr
!=
DS_OK
)
{
ERR
(
"Unable to lock sound buffer! (%x)
\n
"
,
hr
);
ERR
(
"Unable to lock sound buffer! (%x)
\n
"
,
hr
);
break
;
break
;
...
...
dlls/winedos/soundblaster.c
View file @
9b4f9978
...
@@ -94,7 +94,7 @@ static DWORD CALLBACK SB_Poll( void *dummy )
...
@@ -94,7 +94,7 @@ static DWORD CALLBACK SB_Poll( void *dummy )
}
else
}
else
continue
;
continue
;
result
=
IDirectSoundBuffer_Lock
(
lpdsbuf
,
buf_off
,
size
,
&
lpbuf1
,
&
dwsize1
,
&
lpbuf2
,
&
dwsize2
,
0
);
result
=
IDirectSoundBuffer_Lock
(
lpdsbuf
,
buf_off
,
size
,
(
LPVOID
*
)
&
lpbuf1
,
&
dwsize1
,(
LPVOID
*
)
&
lpbuf2
,
&
dwsize2
,
0
);
if
(
result
!=
DS_OK
)
{
if
(
result
!=
DS_OK
)
{
ERR
(
"Unable to lock sound buffer !
\n
"
);
ERR
(
"Unable to lock sound buffer !
\n
"
);
continue
;
continue
;
...
...
include/dsound.h
View file @
9b4f9978
...
@@ -544,7 +544,7 @@ DECLARE_INTERFACE_(IDirectSoundBuffer,IUnknown)
...
@@ -544,7 +544,7 @@ DECLARE_INTERFACE_(IDirectSoundBuffer,IUnknown)
STDMETHOD
(
GetFrequency
)(
THIS_
LPDWORD
lpdwFrequency
)
PURE
;
STDMETHOD
(
GetFrequency
)(
THIS_
LPDWORD
lpdwFrequency
)
PURE
;
STDMETHOD
(
GetStatus
)(
THIS_
LPDWORD
lpdwStatus
)
PURE
;
STDMETHOD
(
GetStatus
)(
THIS_
LPDWORD
lpdwStatus
)
PURE
;
STDMETHOD
(
Initialize
)(
THIS_
LPDIRECTSOUND
lpDirectSound
,
LPCDSBUFFERDESC
lpcDSBufferDesc
)
PURE
;
STDMETHOD
(
Initialize
)(
THIS_
LPDIRECTSOUND
lpDirectSound
,
LPCDSBUFFERDESC
lpcDSBufferDesc
)
PURE
;
STDMETHOD
(
Lock
)(
THIS_
DWORD
dw
WriteCursor
,
DWORD
dwWriteBytes
,
LPVOID
lplpvAudioPtr1
,
LPDWORD
lpdwAudioBytes1
,
LPVOID
lplpvAudioPtr2
,
LPDWORD
l
pdwAudioBytes2
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
Lock
)(
THIS_
DWORD
dw
Offset
,
DWORD
dwBytes
,
LPVOID
*
ppvAudioPtr1
,
LPDWORD
pdwAudioBytes1
,
LPVOID
*
ppvAudioPtr2
,
LPDWORD
pdwAudioBytes2
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
Play
)(
THIS_
DWORD
dwReserved1
,
DWORD
dwReserved2
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
Play
)(
THIS_
DWORD
dwReserved1
,
DWORD
dwReserved2
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
SetCurrentPosition
)(
THIS_
DWORD
dwNewPosition
)
PURE
;
STDMETHOD
(
SetCurrentPosition
)(
THIS_
DWORD
dwNewPosition
)
PURE
;
STDMETHOD
(
SetFormat
)(
THIS_
LPCWAVEFORMATEX
lpcfxFormat
)
PURE
;
STDMETHOD
(
SetFormat
)(
THIS_
LPCWAVEFORMATEX
lpcfxFormat
)
PURE
;
...
@@ -552,7 +552,7 @@ DECLARE_INTERFACE_(IDirectSoundBuffer,IUnknown)
...
@@ -552,7 +552,7 @@ DECLARE_INTERFACE_(IDirectSoundBuffer,IUnknown)
STDMETHOD
(
SetPan
)(
THIS_
LONG
lPan
)
PURE
;
STDMETHOD
(
SetPan
)(
THIS_
LONG
lPan
)
PURE
;
STDMETHOD
(
SetFrequency
)(
THIS_
DWORD
dwFrequency
)
PURE
;
STDMETHOD
(
SetFrequency
)(
THIS_
DWORD
dwFrequency
)
PURE
;
STDMETHOD
(
Stop
)(
THIS
)
PURE
;
STDMETHOD
(
Stop
)(
THIS
)
PURE
;
STDMETHOD
(
Unlock
)(
THIS_
LPVOID
lpvAudioPtr1
,
DWORD
dwAudioBytes1
,
LPVOID
l
pvAudioPtr2
,
DWORD
dwAudioPtr2
)
PURE
;
STDMETHOD
(
Unlock
)(
THIS_
LPVOID
pvAudioPtr1
,
DWORD
dwAudioBytes1
,
LPVOID
pvAudioPtr2
,
DWORD
dwAudioPtr2
)
PURE
;
STDMETHOD
(
Restore
)(
THIS
)
PURE
;
STDMETHOD
(
Restore
)(
THIS
)
PURE
;
};
};
#undef INTERFACE
#undef INTERFACE
...
@@ -627,7 +627,7 @@ DECLARE_INTERFACE_(IDirectSoundBuffer8,IUnknown)
...
@@ -627,7 +627,7 @@ DECLARE_INTERFACE_(IDirectSoundBuffer8,IUnknown)
STDMETHOD
(
GetFrequency
)(
THIS_
LPDWORD
lpdwFrequency
)
PURE
;
STDMETHOD
(
GetFrequency
)(
THIS_
LPDWORD
lpdwFrequency
)
PURE
;
STDMETHOD
(
GetStatus
)(
THIS_
LPDWORD
lpdwStatus
)
PURE
;
STDMETHOD
(
GetStatus
)(
THIS_
LPDWORD
lpdwStatus
)
PURE
;
STDMETHOD
(
Initialize
)(
THIS_
LPDIRECTSOUND
lpDirectSound
,
LPCDSBUFFERDESC
lpcDSBufferDesc
)
PURE
;
STDMETHOD
(
Initialize
)(
THIS_
LPDIRECTSOUND
lpDirectSound
,
LPCDSBUFFERDESC
lpcDSBufferDesc
)
PURE
;
STDMETHOD
(
Lock
)(
THIS_
DWORD
dw
WriteCursor
,
DWORD
dwWriteBytes
,
LPVOID
lplpvAudioPtr1
,
LPDWORD
lpdwAudioBytes1
,
LPVOID
lplpvAudioPtr2
,
LPDWORD
l
pdwAudioBytes2
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
Lock
)(
THIS_
DWORD
dw
Offset
,
DWORD
dwBytes
,
LPVOID
*
ppvAudioPtr1
,
LPDWORD
pdwAudioBytes1
,
LPVOID
*
ppvAudioPtr2
,
LPDWORD
pdwAudioBytes2
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
Play
)(
THIS_
DWORD
dwReserved1
,
DWORD
dwReserved2
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
Play
)(
THIS_
DWORD
dwReserved1
,
DWORD
dwReserved2
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
SetCurrentPosition
)(
THIS_
DWORD
dwNewPosition
)
PURE
;
STDMETHOD
(
SetCurrentPosition
)(
THIS_
DWORD
dwNewPosition
)
PURE
;
STDMETHOD
(
SetFormat
)(
THIS_
LPCWAVEFORMATEX
lpcfxFormat
)
PURE
;
STDMETHOD
(
SetFormat
)(
THIS_
LPCWAVEFORMATEX
lpcfxFormat
)
PURE
;
...
@@ -635,7 +635,7 @@ DECLARE_INTERFACE_(IDirectSoundBuffer8,IUnknown)
...
@@ -635,7 +635,7 @@ DECLARE_INTERFACE_(IDirectSoundBuffer8,IUnknown)
STDMETHOD
(
SetPan
)(
THIS_
LONG
lPan
)
PURE
;
STDMETHOD
(
SetPan
)(
THIS_
LONG
lPan
)
PURE
;
STDMETHOD
(
SetFrequency
)(
THIS_
DWORD
dwFrequency
)
PURE
;
STDMETHOD
(
SetFrequency
)(
THIS_
DWORD
dwFrequency
)
PURE
;
STDMETHOD
(
Stop
)(
THIS
)
PURE
;
STDMETHOD
(
Stop
)(
THIS
)
PURE
;
STDMETHOD
(
Unlock
)(
THIS_
LPVOID
lpvAudioPtr1
,
DWORD
dwAudioBytes1
,
LPVOID
l
pvAudioPtr2
,
DWORD
dwAudioPtr2
)
PURE
;
STDMETHOD
(
Unlock
)(
THIS_
LPVOID
pvAudioPtr1
,
DWORD
dwAudioBytes1
,
LPVOID
pvAudioPtr2
,
DWORD
dwAudioPtr2
)
PURE
;
STDMETHOD
(
Restore
)(
THIS
)
PURE
;
STDMETHOD
(
Restore
)(
THIS
)
PURE
;
STDMETHOD
(
SetFX
)(
THIS_
DWORD
dwEffectsCount
,
LPDSEFFECTDESC
pDSFXDesc
,
LPDWORD
pdwResultCodes
)
PURE
;
STDMETHOD
(
SetFX
)(
THIS_
DWORD
dwEffectsCount
,
LPDSEFFECTDESC
pDSFXDesc
,
LPDWORD
pdwResultCodes
)
PURE
;
STDMETHOD
(
AcquireResources
)(
THIS_
DWORD
dwFlags
,
DWORD
dwEffectsCount
,
LPDWORD
pdwResultCodes
)
PURE
;
STDMETHOD
(
AcquireResources
)(
THIS_
DWORD
dwFlags
,
DWORD
dwEffectsCount
,
LPDWORD
pdwResultCodes
)
PURE
;
...
...
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