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
f7e09367
Commit
f7e09367
authored
Jan 04, 2001
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 04, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set fragments for wave input to 7 x 1024 byte.
parent
40e92175
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
audio.c
dlls/winmm/wineoss/audio.c
+12
-0
No files found.
dlls/winmm/wineoss/audio.c
View file @
f7e09367
...
...
@@ -1932,6 +1932,7 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
int
format
;
int
dsp_stereo
;
WINE_WAVEIN
*
wwi
;
int
audio_fragment
;
TRACE
(
"(%u, %p, %08lX);
\n
"
,
wDevID
,
lpDesc
,
dwFlags
);
if
(
lpDesc
==
NULL
)
{
...
...
@@ -1989,10 +1990,21 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
dsp_stereo
=
(
wwi
->
format
.
wf
.
nChannels
>
1
)
?
TRUE
:
FALSE
;
format
=
(
wwi
->
format
.
wBitsPerSample
==
16
)
?
AFMT_S16_LE
:
AFMT_U8
;
IOCTL
(
audio
,
SNDCTL_DSP_SETFMT
,
format
);
IOCTL
(
audio
,
SNDCTL_DSP_STEREO
,
dsp_stereo
);
IOCTL
(
audio
,
SNDCTL_DSP_SPEED
,
sample_rate
);
/* This is actually hand tuned to work so that my SB Live:
* - does not skip
* - does not buffer too much
* when sending with the Shoutcast winamp plugin
*/
/* 7 fragments max, 2^10 = 1024 bytes per fragment */
audio_fragment
=
0x0007000A
;
IOCTL
(
audio
,
SNDCTL_DSP_SETFRAGMENT
,
audio_fragment
);
/* paranoid checks */
if
(
format
!=
((
wwi
->
format
.
wBitsPerSample
==
16
)
?
AFMT_S16_LE
:
AFMT_U8
))
ERR
(
"Can't set format to %d (%d)
\n
"
,
...
...
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