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
7630a6f0
Commit
7630a6f0
authored
Nov 10, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Nov 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msg711: Correct wave format parameters to remove stuttering.
parent
efda021c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
msg711.c
dlls/msg711.acm/msg711.c
+9
-9
No files found.
dlls/msg711.acm/msg711.c
View file @
7630a6f0
...
...
@@ -832,16 +832,16 @@ static LRESULT G711_FormatSuggest(PACMDRVFORMATSUGGEST adfs)
switch
(
adfs
->
pwfxDst
->
wFormatTag
)
{
case
WAVE_FORMAT_PCM
:
adfs
->
pwfxDst
->
nBlockAlign
=
adfs
->
pwfxDst
->
nChannels
;
adfs
->
pwfxDst
->
nBlockAlign
=
adfs
->
pwfxDst
->
nChannels
*
2
;
adfs
->
pwfxDst
->
nAvgBytesPerSec
=
adfs
->
pwfxDst
->
nSamplesPerSec
*
adfs
->
pwfxDst
->
nBlockAlign
;
break
;
case
WAVE_FORMAT_ALAW
:
adfs
->
pwfxDst
->
nBlockAlign
=
adfs
->
pwfxDst
->
nChannels
*
2
;
adfs
->
pwfxDst
->
nAvgBytesPerSec
=
adfs
->
pwfxDst
->
nSamplesPerSec
*
adfs
->
pwfxSrc
->
nChannels
*
2
;
adfs
->
pwfxDst
->
nBlockAlign
=
adfs
->
pwfxDst
->
nChannels
;
adfs
->
pwfxDst
->
nAvgBytesPerSec
=
adfs
->
pwfxDst
->
nSamplesPerSec
*
adfs
->
pwfxSrc
->
nChannels
;
break
;
case
WAVE_FORMAT_MULAW
:
adfs
->
pwfxDst
->
nBlockAlign
=
adfs
->
pwfxDst
->
nChannels
*
2
;
adfs
->
pwfxDst
->
nAvgBytesPerSec
=
adfs
->
pwfxDst
->
nSamplesPerSec
*
adfs
->
pwfxSrc
->
nChannels
*
2
;
adfs
->
pwfxDst
->
nBlockAlign
=
adfs
->
pwfxDst
->
nChannels
;
adfs
->
pwfxDst
->
nAvgBytesPerSec
=
adfs
->
pwfxDst
->
nSamplesPerSec
*
adfs
->
pwfxSrc
->
nChannels
;
break
;
default:
FIXME
(
"
\n
"
);
...
...
@@ -993,13 +993,13 @@ static LRESULT G711_StreamSize(const ACMDRVSTREAMINSTANCE *adsi, PACMDRVSTREAMSI
(
adsi
->
pwfxDst
->
wFormatTag
==
WAVE_FORMAT_ALAW
||
adsi
->
pwfxDst
->
wFormatTag
==
WAVE_FORMAT_MULAW
))
{
adss
->
cbSrcLength
=
adss
->
cbDstLength
/
2
;
adss
->
cbSrcLength
=
adss
->
cbDstLength
*
2
;
}
else
if
((
adsi
->
pwfxSrc
->
wFormatTag
==
WAVE_FORMAT_ALAW
||
adsi
->
pwfxSrc
->
wFormatTag
==
WAVE_FORMAT_MULAW
)
&&
adsi
->
pwfxDst
->
wFormatTag
==
WAVE_FORMAT_PCM
)
{
adss
->
cbSrcLength
=
adss
->
cbDstLength
*
2
;
adss
->
cbSrcLength
=
adss
->
cbDstLength
/
2
;
}
else
if
((
adsi
->
pwfxSrc
->
wFormatTag
==
WAVE_FORMAT_ALAW
||
adsi
->
pwfxSrc
->
wFormatTag
==
WAVE_FORMAT_MULAW
)
&&
...
...
@@ -1019,13 +1019,13 @@ static LRESULT G711_StreamSize(const ACMDRVSTREAMINSTANCE *adsi, PACMDRVSTREAMSI
(
adsi
->
pwfxDst
->
wFormatTag
==
WAVE_FORMAT_ALAW
||
adsi
->
pwfxDst
->
wFormatTag
==
WAVE_FORMAT_MULAW
))
{
adss
->
cbDstLength
=
adss
->
cbSrcLength
*
2
;
adss
->
cbDstLength
=
adss
->
cbSrcLength
/
2
;
}
else
if
((
adsi
->
pwfxSrc
->
wFormatTag
==
WAVE_FORMAT_ALAW
||
adsi
->
pwfxSrc
->
wFormatTag
==
WAVE_FORMAT_MULAW
)
&&
adsi
->
pwfxDst
->
wFormatTag
==
WAVE_FORMAT_PCM
)
{
adss
->
cbDstLength
=
adss
->
cbSrcLength
/
2
;
adss
->
cbDstLength
=
adss
->
cbSrcLength
*
2
;
}
else
if
((
adsi
->
pwfxSrc
->
wFormatTag
==
WAVE_FORMAT_ALAW
||
adsi
->
pwfxSrc
->
wFormatTag
==
WAVE_FORMAT_MULAW
)
&&
...
...
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