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
1ecf0c96
Commit
1ecf0c96
authored
May 12, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "winealsa: Remove calls to deprecated functions."
This reverts commit
c8bdebde
. To be revisited after 1.0.
parent
b605980b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
0 deletions
+6
-0
alsa.c
dlls/winealsa.drv/alsa.c
+1
-0
dscapture.c
dlls/winealsa.drv/dscapture.c
+1
-0
dsoutput.c
dlls/winealsa.drv/dsoutput.c
+1
-0
wavein.c
dlls/winealsa.drv/wavein.c
+1
-0
waveout.c
dlls/winealsa.drv/waveout.c
+2
-0
No files found.
dlls/winealsa.drv/alsa.c
View file @
1ecf0c96
...
...
@@ -735,6 +735,7 @@ if (err<0) { \
}
while
(
0
);
X
(
period_time
);
X
(
tick_time
);
#undef X
if
(
!
sw
)
...
...
dlls/winealsa.drv/dscapture.c
View file @
1ecf0c96
...
...
@@ -448,6 +448,7 @@ static int CreateMMAP(IDsCaptureDriverBufferImpl* pdbi)
snd_pcm_sw_params_set_silence_threshold
(
pcm
,
sw_params
,
INT_MAX
);
snd_pcm_sw_params_set_silence_size
(
pcm
,
sw_params
,
0
);
snd_pcm_sw_params_set_avail_min
(
pcm
,
sw_params
,
0
);
snd_pcm_sw_params_set_xrun_mode
(
pcm
,
sw_params
,
SND_PCM_XRUN_NONE
);
err
=
snd_pcm_sw_params
(
pcm
,
sw_params
);
avail
=
snd_pcm_avail_update
(
pcm
);
...
...
dlls/winealsa.drv/dsoutput.c
View file @
1ecf0c96
...
...
@@ -210,6 +210,7 @@ static int DSDB_CreateMMAP(IDsDriverBufferImpl* pdbi)
snd_pcm_sw_params_set_silence_threshold
(
pcm
,
sw_params
,
INT_MAX
);
snd_pcm_sw_params_set_silence_size
(
pcm
,
sw_params
,
0
);
snd_pcm_sw_params_set_avail_min
(
pcm
,
sw_params
,
0
);
snd_pcm_sw_params_set_xrun_mode
(
pcm
,
sw_params
,
SND_PCM_XRUN_NONE
);
err
=
snd_pcm_sw_params
(
pcm
,
sw_params
);
avail
=
snd_pcm_avail_update
(
pcm
);
...
...
dlls/winealsa.drv/wavein.c
View file @
1ecf0c96
...
...
@@ -483,6 +483,7 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
EXIT_ON_ERROR
(
snd_pcm_sw_params_set_start_threshold
(
pcm
,
sw_params
,
1
),
MMSYSERR_ERROR
,
"unable to set start threshold"
);
EXIT_ON_ERROR
(
snd_pcm_sw_params_set_silence_size
(
pcm
,
sw_params
,
0
),
MMSYSERR_ERROR
,
"unable to set silence size"
);
EXIT_ON_ERROR
(
snd_pcm_sw_params_set_avail_min
(
pcm
,
sw_params
,
period_size
),
MMSYSERR_ERROR
,
"unable to set avail min"
);
EXIT_ON_ERROR
(
snd_pcm_sw_params_set_xfer_align
(
pcm
,
sw_params
,
1
),
MMSYSERR_ERROR
,
"unable to set xfer align"
);
EXIT_ON_ERROR
(
snd_pcm_sw_params_set_silence_threshold
(
pcm
,
sw_params
,
0
),
MMSYSERR_ERROR
,
"unable to set silence threshold"
);
EXIT_ON_ERROR
(
snd_pcm_sw_params
(
pcm
,
sw_params
),
MMSYSERR_ERROR
,
"unable to set sw params for playback"
);
#undef EXIT_ON_ERROR
...
...
dlls/winealsa.drv/waveout.c
View file @
1ecf0c96
...
...
@@ -759,7 +759,9 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
EXIT_ON_ERROR
(
snd_pcm_sw_params_set_start_threshold
(
pcm
,
sw_params
,
1
),
MMSYSERR_ERROR
,
"unable to set start threshold"
);
EXIT_ON_ERROR
(
snd_pcm_sw_params_set_silence_size
(
pcm
,
sw_params
,
0
),
MMSYSERR_ERROR
,
"unable to set silence size"
);
EXIT_ON_ERROR
(
snd_pcm_sw_params_set_avail_min
(
pcm
,
sw_params
,
period_size
),
MMSYSERR_ERROR
,
"unable to set avail min"
);
EXIT_ON_ERROR
(
snd_pcm_sw_params_set_xfer_align
(
pcm
,
sw_params
,
1
),
MMSYSERR_ERROR
,
"unable to set xfer align"
);
EXIT_ON_ERROR
(
snd_pcm_sw_params_set_silence_threshold
(
pcm
,
sw_params
,
0
),
MMSYSERR_ERROR
,
"unable to set silence threshold"
);
EXIT_ON_ERROR
(
snd_pcm_sw_params_set_xrun_mode
(
pcm
,
sw_params
,
SND_PCM_XRUN_NONE
),
MMSYSERR_ERROR
,
"unable to set xrun mode"
);
EXIT_ON_ERROR
(
snd_pcm_sw_params
(
pcm
,
sw_params
),
MMSYSERR_ERROR
,
"unable to set sw params for playback"
);
#undef EXIT_ON_ERROR
...
...
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