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
e9b7222e
Commit
e9b7222e
authored
Feb 13, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Feb 13, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split buffer creation function into primary and secondary buffer
creation functions. Secondary buffer creation function is stubbed out.
parent
b6de3047
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
5 deletions
+34
-5
audio.c
dlls/winmm/wineoss/audio.c
+34
-5
No files found.
dlls/winmm/wineoss/audio.c
View file @
e9b7222e
...
...
@@ -2708,7 +2708,7 @@ static HRESULT WINAPI IDsDriverImpl_GetCaps(PIDSDRIVER iface, PDSDRIVERCAPS pCap
return
DS_OK
;
}
static
HRESULT
WINAPI
IDsDriverImpl_CreateSound
Buffer
(
PIDSDRIVER
iface
,
static
HRESULT
WINAPI
DSD_CreatePrimary
Buffer
(
PIDSDRIVER
iface
,
LPWAVEFORMATEX
pwfx
,
DWORD
dwFlags
,
DWORD
dwCardAddress
,
...
...
@@ -2721,11 +2721,8 @@ static HRESULT WINAPI IDsDriverImpl_CreateSoundBuffer(PIDSDRIVER iface,
HRESULT
err
;
audio_buf_info
info
;
int
enable
=
0
;
TRACE
(
"(%p,%p,%lx,%lx
)
\n
"
,
iface
,
pwfx
,
dwFlags
,
dwCardAddress
);
TRACE
(
"(%p,%p,%lx,%lx
,%p,%p,%p)
\n
"
,
iface
,
pwfx
,
dwFlags
,
dwCardAddress
,
pdwcbBufferSize
,
ppbBuffer
,
ppvObj
);
/* we only support primary buffers */
if
(
!
(
dwFlags
&
DSBCAPS_PRIMARYBUFFER
))
return
DSERR_UNSUPPORTED
;
if
(
This
->
primary
)
return
DSERR_ALLOCATED
;
if
(
dwFlags
&
(
DSBCAPS_CTRLFREQUENCY
|
DSBCAPS_CTRLPAN
))
...
...
@@ -2774,6 +2771,38 @@ static HRESULT WINAPI IDsDriverImpl_CreateSoundBuffer(PIDSDRIVER iface,
return
DS_OK
;
}
static
HRESULT
WINAPI
DSD_CreateSecondaryBuffer
(
PIDSDRIVER
iface
,
LPWAVEFORMATEX
pwfx
,
DWORD
dwFlags
,
DWORD
dwCardAddress
,
LPDWORD
pdwcbBufferSize
,
LPBYTE
*
ppbBuffer
,
LPVOID
*
ppvObj
)
{
ICOM_THIS
(
IDsDriverImpl
,
iface
);
IDsDriverBufferImpl
**
ippdsdb
=
(
IDsDriverBufferImpl
**
)
ppvObj
;
FIXME
(
"(%p,%p,%lx,%lx,%p,%p,%p): stub
\n
"
,
This
,
pwfx
,
dwFlags
,
dwCardAddress
,
pdwcbBufferSize
,
ppbBuffer
,
ppvObj
);
*
ippdsdb
=
0
;
return
DSERR_UNSUPPORTED
;
}
static
HRESULT
WINAPI
IDsDriverImpl_CreateSoundBuffer
(
PIDSDRIVER
iface
,
LPWAVEFORMATEX
pwfx
,
DWORD
dwFlags
,
DWORD
dwCardAddress
,
LPDWORD
pdwcbBufferSize
,
LPBYTE
*
ppbBuffer
,
LPVOID
*
ppvObj
)
{
TRACE
(
"(%p,%p,%lx,%lx,%p,%p,%p)
\n
"
,
iface
,
pwfx
,
dwFlags
,
dwCardAddress
,
pdwcbBufferSize
,
ppbBuffer
,
ppvObj
);
if
(
dwFlags
&
DSBCAPS_PRIMARYBUFFER
)
return
DSD_CreatePrimaryBuffer
(
iface
,
pwfx
,
dwFlags
,
dwCardAddress
,
pdwcbBufferSize
,
ppbBuffer
,
ppvObj
);
return
DSD_CreateSecondaryBuffer
(
iface
,
pwfx
,
dwFlags
,
dwCardAddress
,
pdwcbBufferSize
,
ppbBuffer
,
ppvObj
);
}
static
HRESULT
WINAPI
IDsDriverImpl_DuplicateSoundBuffer
(
PIDSDRIVER
iface
,
PIDSDRIVERBUFFER
pBuffer
,
LPVOID
*
ppvObj
)
...
...
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