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
e385e5e4
Commit
e385e5e4
authored
Dec 15, 2002
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Our resampling algorithm is quite primitive so try simple 8/16
mono/stereo conversions first. Only resample if we cannot avoid it.
parent
ec55d235
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
wavemap.c
dlls/winmm/wavemap/wavemap.c
+13
-0
No files found.
dlls/winmm/wavemap/wavemap.c
View file @
e385e5e4
...
...
@@ -188,6 +188,19 @@ static DWORD wodOpen(LPDWORD lpdwUser, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
if (wodOpenHelper(wom, i, lpDesc, &wfx, dwFlags | WAVE_FORMAT_DIRECT) == MMSYSERR_NOERROR) \
{wom->avgSpeedInner = wfx.nAvgBytesPerSec; goto found;}
/* Our resampling algorithm is quite primitive so first try
* to just change the bit depth and number of channels
*/
for
(
i
=
ndlo
;
i
<
ndhi
;
i
++
)
{
wfx
.
nSamplesPerSec
=
lpDesc
->
lpFormat
->
nSamplesPerSec
;
wfx
.
nChannels
=
lpDesc
->
lpFormat
->
nChannels
;
TRY
(
wfx
.
nSamplesPerSec
,
16
);
TRY
(
wfx
.
nSamplesPerSec
,
8
);
wfx
.
nChannels
^=
3
;
TRY
(
wfx
.
nSamplesPerSec
,
16
);
TRY
(
wfx
.
nSamplesPerSec
,
8
);
}
for
(
i
=
ndlo
;
i
<
ndhi
;
i
++
)
{
/* first try with same stereo/mono option as source */
wfx
.
nChannels
=
lpDesc
->
lpFormat
->
nChannels
;
...
...
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