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
276ccc44
Commit
276ccc44
authored
Apr 19, 2004
by
Ove Kaaven
Committed by
Alexandre Julliard
Apr 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added detection of 48kHz and 96kHz support. Fixed a thinko, and some
misleading indentation.
parent
c87fd95f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
audio.c
dlls/winmm/winealsa/audio.c
+11
-7
No files found.
dlls/winmm/winealsa/audio.c
View file @
276ccc44
...
...
@@ -374,12 +374,12 @@ static int ALSA_XRUNRecovery(WINE_WAVEOUT * wwo, int err)
}
else
if
(
err
==
-
ESTRPIPE
)
{
while
((
err
=
snd_pcm_resume
(
wwo
->
p_handle
))
==
-
EAGAIN
)
sleep
(
1
);
/* wait until the suspend flag is released */
if
(
err
<
0
)
{
err
=
snd_pcm_prepare
(
wwo
->
p_handle
);
if
(
err
<
0
)
ERR
(
"recovery from suspend failed, prepare failed: %s
\n
"
,
snd_strerror
(
err
));
}
return
0
;
if
(
err
<
0
)
{
err
=
snd_pcm_prepare
(
wwo
->
p_handle
);
if
(
err
<
0
)
ERR
(
"recovery from suspend failed, prepare failed: %s
\n
"
,
snd_strerror
(
err
));
}
return
0
;
}
return
err
;
}
...
...
@@ -610,6 +610,8 @@ LONG ALSA_WaveInit(void)
X
(
11025
,
1
);
X
(
22050
,
2
);
X
(
44100
,
4
);
X
(
48000
,
48
);
X
(
96000
,
96
);
#undef X
}
...
...
@@ -714,6 +716,8 @@ LONG ALSA_WaveInit(void)
X
(
11025
,
1
);
X
(
22050
,
2
);
X
(
44100
,
4
);
X
(
48000
,
48
);
X
(
96000
,
96
);
#undef X
}
...
...
@@ -1457,7 +1461,7 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
if
(
dwFlags
&
WAVE_DIRECTSOUND
)
flags
|=
SND_PCM_ASYNC
;
if
(
(
err
=
snd_pcm_open
(
&
pcm
,
wwo
->
device
,
SND_PCM_STREAM_PLAYBACK
,
dwF
lags
))
<
0
)
if
(
(
err
=
snd_pcm_open
(
&
pcm
,
wwo
->
device
,
SND_PCM_STREAM_PLAYBACK
,
f
lags
))
<
0
)
{
ERR
(
"Error open: %s
\n
"
,
snd_strerror
(
err
));
return
MMSYSERR_NOTENABLED
;
...
...
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