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
9c469e1a
Commit
9c469e1a
authored
Aug 19, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Aug 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Handle failing of IDsDriver_CreateSoundBuffer better.
parent
4a2424d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
primary.c
dlls/dsound/primary.c
+13
-2
dsrender.c
dlls/wineoss.drv/dsrender.c
+1
-3
No files found.
dlls/dsound/primary.c
View file @
9c469e1a
...
...
@@ -224,8 +224,19 @@ HRESULT DSOUND_PrimaryCreate(DirectSoundDevice *device)
&
(
device
->
buflen
),
&
(
device
->
buffer
),
(
LPVOID
*
)
&
(
device
->
hwbuf
));
if
(
err
!=
DS_OK
)
{
WARN
(
"IDsDriver_CreateSoundBuffer failed
\n
"
);
return
err
;
WARN
(
"IDsDriver_CreateSoundBuffer failed, falling back to waveout
\n
"
);
/* Wine-only: close wine directsound driver, then reopen without WAVE_DIRECTSOUND */
device
->
drvdesc
.
dwFlags
=
DSDDESC_DOMMSYSTEMOPEN
|
DSDDESC_DOMMSYSTEMSETFORMAT
;
waveOutClose
(
device
->
hwo
);
IDsDriver_Release
(
device
->
driver
);
device
->
driver
=
device
->
buffer
=
NULL
;
device
->
hwo
=
0
;
err
=
mmErr
(
waveOutOpen
(
&
(
device
->
hwo
),
device
->
drvdesc
.
dnDevNode
,
device
->
pwfx
,
(
DWORD_PTR
)
DSOUND_callback
,
(
DWORD
)
device
,
CALLBACK_FUNCTION
));
if
(
err
!=
DS_OK
)
{
WARN
(
"Falling back to waveout failed too! Giving up
\n
"
);
return
err
;
}
}
}
...
...
dlls/wineoss.drv/dsrender.c
View file @
9c469e1a
...
...
@@ -344,9 +344,7 @@ static HRESULT DSDB_MapBuffer(IDsDriverBufferImpl *dsdb)
dsdb
->
mapping
=
mmap
(
NULL
,
dsdb
->
maplen
,
PROT_WRITE
,
MAP_SHARED
,
dsdb
->
fd
,
0
);
if
(
dsdb
->
mapping
==
(
LPBYTE
)
-
1
)
{
ERR
(
"Could not map sound device for direct access (%s)
\n
"
,
strerror
(
errno
));
ERR
(
"Please run winecfg, open
\"
Audio
\"
page and set
\n
"
"
\"
Hardware Acceleration
\"
to
\"
Emulation
\"
.
\n
"
);
WARN
(
"Could not map sound device for direct access (%s)
\n
"
,
strerror
(
errno
));
return
DSERR_GENERIC
;
}
TRACE
(
"The sound device has been mapped for direct access at %p, size=%d
\n
"
,
dsdb
->
mapping
,
dsdb
->
maplen
);
...
...
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