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
370d5d24
Commit
370d5d24
authored
Aug 19, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Aug 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup messages in supportedFormat.
parent
c7101211
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
audio.c
dlls/winmm/wineoss/audio.c
+15
-14
No files found.
dlls/winmm/wineoss/audio.c
View file @
370d5d24
...
...
@@ -394,24 +394,25 @@ static BOOL supportedFormat(LPWAVEFORMATEX wf)
return
FALSE
;
if
(
wf
->
wFormatTag
==
WAVE_FORMAT_PCM
)
{
if
(
wf
->
nChannels
==
1
||
wf
->
nChannels
==
2
)
{
if
(
wf
->
wBitsPerSample
==
8
||
wf
->
wBitsPerSample
==
16
)
{
if
(
wf
->
nChannels
==
1
||
wf
->
nChannels
==
2
)
{
if
(
wf
->
wBitsPerSample
==
8
||
wf
->
wBitsPerSample
==
16
)
return
TRUE
;
}
}
}
else
if
(
wf
->
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
{
WAVEFORMATEXTENSIBLE
*
wfex
=
(
WAVEFORMATEXTENSIBLE
*
)
wf
;
}
else
if
(
wf
->
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
{
WAVEFORMATEXTENSIBLE
*
wfex
=
(
WAVEFORMATEXTENSIBLE
*
)
wf
;
if
(
wf
->
cbSize
==
22
&&
IsEqualGUID
(
&
wfex
->
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_PCM
))
{
if
(
wf
->
nChannels
==
1
||
wf
->
nChannels
==
2
)
{
if
(
(
wf
->
wBitsPerSample
==
8
||
wf
->
wBitsPerSample
==
16
)
&&
(
wfex
->
Samples
.
wValidBitsPerSample
==
8
||
wfex
->
Samples
.
wValidBitsPerSample
==
16
))
{
FIXME
(
"WAVE_FORMAT_EXTENSIBLE not fully supported
\n
"
)
;
return
TRUE
;
}
if
(
wf
->
nChannels
==
1
||
wf
->
nChannels
==
2
)
{
if
(
wf
->
wBitsPerSample
==
wfex
->
Samples
.
wValidBitsPerSample
)
{
if
(
wf
->
wBitsPerSample
==
8
||
wf
->
wBitsPerSample
==
16
)
return
TRUE
;
}
else
WARN
(
"wBitsPerSample != wValidBitsPerSample not supported yet
\n
"
);
}
}
}
}
else
WARN
(
"only KSDATAFORMAT_SUBTYPE_PCM supported
\n
"
);
}
else
WARN
(
"only WAVE_FORMAT_PCM and WAVE_FORMAT_EXTENSIBLE supported
\n
"
);
return
FALSE
;
}
...
...
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