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
42cdfcc6
Commit
42cdfcc6
authored
Sep 09, 2000
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 09, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added *Filter* functions.
Misc bug fixes.
parent
e89f6c44
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
filter.c
dlls/msacm/filter.c
+0
-0
format.c
dlls/msacm/format.c
+3
-1
stream.c
dlls/msacm/stream.c
+6
-4
No files found.
dlls/msacm/filter.c
View file @
42cdfcc6
This diff is collapsed.
Click to expand it.
dlls/msacm/format.c
View file @
42cdfcc6
...
...
@@ -303,8 +303,10 @@ MMRESULT WINAPI acmFormatDetailsW(HACMDRIVER had, PACMFORMATDETAILSW pafd,
switch
(
fdwDetails
)
{
case
ACM_FORMATDETAILSF_FORMAT
:
if
(
pafd
->
dwFormatTag
!=
pafd
->
pwfx
->
wFormatTag
)
if
(
pafd
->
dwFormatTag
!=
pafd
->
pwfx
->
wFormatTag
)
{
mmr
=
MMSYSERR_INVALPARAM
;
break
;
}
if
(
had
==
(
HACMDRIVER
)
NULL
)
{
PWINE_ACMDRIVERID
padid
;
...
...
dlls/msacm/stream.c
View file @
42cdfcc6
...
...
@@ -132,10 +132,12 @@ MMRESULT WINAPI acmStreamOpen(PHACMSTREAM phas, HACMDRIVER had, PWAVEFORMATEX pw
pwfxDst
->
wFormatTag
,
pwfxDst
->
nChannels
,
pwfxDst
->
nSamplesPerSec
,
pwfxDst
->
nAvgBytesPerSec
,
pwfxDst
->
nBlockAlign
,
pwfxDst
->
wBitsPerSample
,
pwfxDst
->
cbSize
);
#define SIZEOF_WFX(wfx) (sizeof(WAVEFORMATEX) + ((wfx->wFormatTag == WAVE_FORMAT_PCM) ? 0 : wfx->cbSize))
wfxSrcSize
=
SIZEOF_WFX
(
pwfxSrc
);
wfxDstSize
=
SIZEOF_WFX
(
pwfxDst
);
#undef SIZEOF_WFX
if
((
fdwOpen
&
ACM_STREAMOPENF_QUERY
)
&&
phas
)
return
MMSYSERR_INVALPARAM
;
if
(
pwfltr
&&
(
pwfxSrc
->
wFormatTag
!=
pwfxDst
->
wFormatTag
))
return
MMSYSERR_INVALPARAM
;
wfxSrcSize
=
wfxDstSize
=
sizeof
(
WAVEFORMATEX
);
if
(
pwfxSrc
->
wFormatTag
!=
WAVE_FORMAT_PCM
)
wfxSrcSize
+=
pwfxSrc
->
cbSize
;
if
(
pwfxDst
->
wFormatTag
!=
WAVE_FORMAT_PCM
)
wfxDstSize
+=
pwfxDst
->
cbSize
;
was
=
HeapAlloc
(
MSACM_hHeap
,
0
,
sizeof
(
*
was
)
+
wfxSrcSize
+
wfxDstSize
+
((
pwfltr
)
?
sizeof
(
WAVEFILTER
)
:
0
));
if
(
was
==
NULL
)
...
...
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