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
c6ad91ba
Commit
c6ad91ba
authored
Apr 28, 2004
by
Ove Kaaven
Committed by
Alexandre Julliard
Apr 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a couple of bugs.
parent
ab6cd7bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
audio.c
dlls/winmm/winealsa/audio.c
+5
-5
No files found.
dlls/winmm/winealsa/audio.c
View file @
c6ad91ba
...
@@ -596,14 +596,14 @@ LONG ALSA_WaveInit(void)
...
@@ -596,14 +596,14 @@ LONG ALSA_WaveInit(void)
if (snd_pcm_format_mask_test( fmask, SND_PCM_FORMAT_U8)) \
if (snd_pcm_format_mask_test( fmask, SND_PCM_FORMAT_U8)) \
{ \
{ \
if (chmin <= 1 && 1 <= chmax) \
if (chmin <= 1 && 1 <= chmax) \
wwo->caps.dwFormats |= WAVE_FORMAT_##v##
S
08; \
wwo->caps.dwFormats |= WAVE_FORMAT_##v##
M
08; \
if (chmin <= 2 && 2 <= chmax) \
if (chmin <= 2 && 2 <= chmax) \
wwo->caps.dwFormats |= WAVE_FORMAT_##v##S08; \
wwo->caps.dwFormats |= WAVE_FORMAT_##v##S08; \
} \
} \
if (snd_pcm_format_mask_test( fmask, SND_PCM_FORMAT_S16_LE)) \
if (snd_pcm_format_mask_test( fmask, SND_PCM_FORMAT_S16_LE)) \
{ \
{ \
if (chmin <= 1 && 1 <= chmax) \
if (chmin <= 1 && 1 <= chmax) \
wwo->caps.dwFormats |= WAVE_FORMAT_##v##
S
16; \
wwo->caps.dwFormats |= WAVE_FORMAT_##v##
M
16; \
if (chmin <= 2 && 2 <= chmax) \
if (chmin <= 2 && 2 <= chmax) \
wwo->caps.dwFormats |= WAVE_FORMAT_##v##S16; \
wwo->caps.dwFormats |= WAVE_FORMAT_##v##S16; \
} \
} \
...
@@ -703,14 +703,14 @@ LONG ALSA_WaveInit(void)
...
@@ -703,14 +703,14 @@ LONG ALSA_WaveInit(void)
if (snd_pcm_format_mask_test( fmask, SND_PCM_FORMAT_U8)) \
if (snd_pcm_format_mask_test( fmask, SND_PCM_FORMAT_U8)) \
{ \
{ \
if (chmin <= 1 && 1 <= chmax) \
if (chmin <= 1 && 1 <= chmax) \
wwi->caps.dwFormats |= WAVE_FORMAT_##v##
S
08; \
wwi->caps.dwFormats |= WAVE_FORMAT_##v##
M
08; \
if (chmin <= 2 && 2 <= chmax) \
if (chmin <= 2 && 2 <= chmax) \
wwi->caps.dwFormats |= WAVE_FORMAT_##v##S08; \
wwi->caps.dwFormats |= WAVE_FORMAT_##v##S08; \
} \
} \
if (snd_pcm_format_mask_test( fmask, SND_PCM_FORMAT_S16_LE)) \
if (snd_pcm_format_mask_test( fmask, SND_PCM_FORMAT_S16_LE)) \
{ \
{ \
if (chmin <= 1 && 1 <= chmax) \
if (chmin <= 1 && 1 <= chmax) \
wwi->caps.dwFormats |= WAVE_FORMAT_##v##
S
16; \
wwi->caps.dwFormats |= WAVE_FORMAT_##v##
M
16; \
if (chmin <= 2 && 2 <= chmax) \
if (chmin <= 2 && 2 <= chmax) \
wwi->caps.dwFormats |= WAVE_FORMAT_##v##S16; \
wwi->caps.dwFormats |= WAVE_FORMAT_##v##S16; \
} \
} \
...
@@ -947,7 +947,7 @@ static BOOL wodUpdatePlayedTotal(WINE_WAVEOUT* wwo, snd_pcm_status_t* ps)
...
@@ -947,7 +947,7 @@ static BOOL wodUpdatePlayedTotal(WINE_WAVEOUT* wwo, snd_pcm_status_t* ps)
{
{
snd_pcm_sframes_t
delay
=
0
;
snd_pcm_sframes_t
delay
=
0
;
snd_pcm_delay
(
wwo
->
p_handle
,
&
delay
);
snd_pcm_delay
(
wwo
->
p_handle
,
&
delay
);
wwo
->
dwPlayedTotal
=
wwo
->
dwWrittenTotal
-
delay
;
wwo
->
dwPlayedTotal
=
wwo
->
dwWrittenTotal
-
snd_pcm_frames_to_bytes
(
wwo
->
p_handle
,
delay
)
;
return
TRUE
;
return
TRUE
;
}
}
...
...
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