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
c8fa5753
Commit
c8fa5753
authored
Aug 25, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Aug 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added 32 bit float support.
parent
f01b8718
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
audio.c
dlls/winmm/winealsa/audio.c
+11
-2
No files found.
dlls/winmm/winealsa/audio.c
View file @
c8fa5753
...
...
@@ -329,7 +329,9 @@ static BOOL supportedFormat(LPWAVEFORMATEX wf)
}
else
if
(
wf
->
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
{
WAVEFORMATEXTENSIBLE
*
wfex
=
(
WAVEFORMATEXTENSIBLE
*
)
wf
;
if
(
wf
->
cbSize
==
22
&&
IsEqualGUID
(
&
wfex
->
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_PCM
))
{
if
(
wf
->
cbSize
==
22
&&
(
IsEqualGUID
(
&
wfex
->
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_PCM
)
||
IsEqualGUID
(
&
wfex
->
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
)))
{
if
(
wf
->
nChannels
>=
1
&&
wf
->
nChannels
<=
6
)
{
if
(
wf
->
wBitsPerSample
==
wfex
->
Samples
.
wValidBitsPerSample
)
{
if
(
wf
->
wBitsPerSample
==
8
||
wf
->
wBitsPerSample
==
16
||
...
...
@@ -340,7 +342,8 @@ static BOOL supportedFormat(LPWAVEFORMATEX wf)
WARN
(
"wBitsPerSample != wValidBitsPerSample not supported yet
\n
"
);
}
}
else
WARN
(
"only KSDATAFORMAT_SUBTYPE_PCM supported
\n
"
);
WARN
(
"only KSDATAFORMAT_SUBTYPE_PCM and KSDATAFORMAT_SUBTYPE_IEEE_FLOAT "
"supported
\n
"
);
}
else
if
(
wf
->
wFormatTag
==
WAVE_FORMAT_MULAW
||
wf
->
wFormatTag
==
WAVE_FORMAT_ALAW
)
{
if
(
wf
->
wBitsPerSample
==
8
)
return
TRUE
;
...
...
@@ -1686,6 +1689,9 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
(
wwo
->
format
.
Format
.
wBitsPerSample
==
16
)
?
SND_PCM_FORMAT_S16_LE
:
(
wwo
->
format
.
Format
.
wBitsPerSample
==
24
)
?
SND_PCM_FORMAT_S24_LE
:
(
wwo
->
format
.
Format
.
wBitsPerSample
==
32
)
?
SND_PCM_FORMAT_S32_LE
:
-
1
;
}
else
if
((
wwo
->
format
.
Format
.
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
&&
IsEqualGUID
(
&
wwo
->
format
.
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
)){
format
=
(
wwo
->
format
.
Format
.
wBitsPerSample
==
32
)
?
SND_PCM_FORMAT_FLOAT_LE
:
-
1
;
}
else
if
(
wwo
->
format
.
Format
.
wFormatTag
==
WAVE_FORMAT_MULAW
)
{
FIXME
(
"unimplemented format: WAVE_FORMAT_MULAW
\n
"
);
snd_pcm_close
(
pcm
);
...
...
@@ -3171,6 +3177,9 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
(
wwi
->
format
.
Format
.
wBitsPerSample
==
16
)
?
SND_PCM_FORMAT_S16_LE
:
(
wwi
->
format
.
Format
.
wBitsPerSample
==
24
)
?
SND_PCM_FORMAT_S24_LE
:
(
wwi
->
format
.
Format
.
wBitsPerSample
==
32
)
?
SND_PCM_FORMAT_S32_LE
:
-
1
;
}
else
if
((
wwi
->
format
.
Format
.
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
&&
IsEqualGUID
(
&
wwi
->
format
.
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
)){
format
=
(
wwi
->
format
.
Format
.
wBitsPerSample
==
32
)
?
SND_PCM_FORMAT_FLOAT_LE
:
-
1
;
}
else
if
(
wwi
->
format
.
Format
.
wFormatTag
==
WAVE_FORMAT_MULAW
)
{
FIXME
(
"unimplemented format: WAVE_FORMAT_MULAW
\n
"
);
snd_pcm_close
(
pcm
);
...
...
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