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
343597b3
Commit
343597b3
authored
Jul 02, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/winealsa: Write-strings warning fix.
parent
663187a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
audio.c
dlls/winmm/winealsa/audio.c
+2
-4
No files found.
dlls/winmm/winealsa/audio.c
View file @
343597b3
...
...
@@ -503,10 +503,9 @@ static int ALSA_TestDeviceForWine(int card, int device, snd_pcm_stream_t stream
char
pcmname
[
256
];
int
retcode
;
snd_pcm_hw_params_t
*
hwparams
;
char
*
reason
=
NULL
;
c
onst
c
har
*
reason
=
NULL
;
unsigned
int
rrate
;
/* Note that the plug: device masks out a lot of info, we want to avoid that */
sprintf
(
pcmname
,
"hw:%d,%d"
,
card
,
device
);
retcode
=
snd_pcm_open
(
&
pcm
,
pcmname
,
streamtype
,
SND_PCM_NONBLOCK
);
...
...
@@ -527,7 +526,7 @@ static int ALSA_TestDeviceForWine(int card, int device, snd_pcm_stream_t stream
goto
exit
;
}
/* set the count of channels */
/* set the count of channels */
retcode
=
snd_pcm_hw_params_set_channels
(
pcm
,
hwparams
,
2
);
if
(
retcode
<
0
)
{
...
...
@@ -567,7 +566,6 @@ exit:
TRACE
(
"Discarding card %d/device %d: %s [%d(%s)]
\n
"
,
card
,
device
,
reason
,
retcode
,
snd_strerror
(
retcode
));
return
retcode
;
}
/**************************************************************************
...
...
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