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
e746f665
Commit
e746f665
authored
Mar 21, 2001
by
Ove Kaaven
Committed by
Alexandre Julliard
Mar 21, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show an error if small enough fragment sizes couldn't be set.
Force a complete close/reopen of the sound device if pause is requested in DirectSound mode (many drivers require this).
parent
03dab82c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
audio.c
dlls/winmm/wineoss/audio.c
+12
-2
No files found.
dlls/winmm/wineoss/audio.c
View file @
e746f665
...
...
@@ -865,11 +865,17 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
/* even if we set fragment size above, read it again, just in case */
IOCTL
(
audio
,
SNDCTL_DSP_GETBLKSIZE
,
fragment_size
);
if
(
fragment_size
==
-
1
)
{
WARN
(
"IOCTL can't 'SNDCTL_DSP_GETBLKSIZE' !
\n
"
);
ERR
(
"IOCTL can't 'SNDCTL_DSP_GETBLKSIZE' !
\n
"
);
close
(
audio
);
wwo
->
unixdev
=
-
1
;
return
MMSYSERR_NOTENABLED
;
}
if
((
fragment_size
>
1024
)
&&
(
LOWORD
(
audio_fragment
)
<=
10
))
{
/* we've tried to set 1K fragments or less, but it didn't work */
ERR
(
"fragment size set failed, size is now %d
\n
"
,
fragment_size
);
MESSAGE
(
"Your Open Sound System driver did not let us configure small enough sound fragments.
\n
"
);
MESSAGE
(
"This may cause delays and other problems in audio playback with certain applications.
\n
"
);
}
wwo
->
dwFragmentSize
=
fragment_size
;
wwo
->
msg_toget
=
0
;
...
...
@@ -1470,7 +1476,11 @@ static HRESULT WINAPI IDsDriverBufferImpl_Stop(PIDSDRIVERBUFFER iface)
return DSERR_GENERIC;
}
#endif
return
DS_OK
;
/* Most OSS drivers just can't stop the playback without closing the device...
* so we need to somehow signal to our DirectSound implementation
* that it should completely recreate this HW buffer...
* this unexpected error code should do the trick... */
return
DSERR_BUFFERLOST
;
}
static
ICOM_VTABLE
(
IDsDriverBuffer
)
dsdbvt
=
...
...
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