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
e3ff943e
Commit
e3ff943e
authored
Apr 27, 2011
by
Andrew Eikum
Committed by
Alexandre Julliard
Apr 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa.drv: Add mapping for 64-bit floats in IAudioClient::Initialize().
parent
fc4748ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+5
-2
No files found.
dlls/winealsa.drv/mmdevdrv.c
View file @
e3ff943e
...
@@ -408,12 +408,15 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
...
@@ -408,12 +408,15 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
}
else
if
(
fmt
->
wFormatTag
==
WAVE_FORMAT_IEEE_FLOAT
||
}
else
if
(
fmt
->
wFormatTag
==
WAVE_FORMAT_IEEE_FLOAT
||
(
fmt
->
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
&&
(
fmt
->
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
&&
IsEqualGUID
(
&
fmtex
->
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
))){
IsEqualGUID
(
&
fmtex
->
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
))){
if
(
fmt
->
wBitsPerSample
!=
32
){
if
(
fmt
->
wBitsPerSample
==
32
)
format
=
SND_PCM_FORMAT_FLOAT_LE
;
else
if
(
fmt
->
wBitsPerSample
==
64
)
format
=
SND_PCM_FORMAT_FLOAT64_LE
;
else
{
WARN
(
"Unsupported float size: %u
\n
"
,
fmt
->
wBitsPerSample
);
WARN
(
"Unsupported float size: %u
\n
"
,
fmt
->
wBitsPerSample
);
hr
=
AUDCLNT_E_UNSUPPORTED_FORMAT
;
hr
=
AUDCLNT_E_UNSUPPORTED_FORMAT
;
goto
exit
;
goto
exit
;
}
}
format
=
SND_PCM_FORMAT_FLOAT_LE
;
}
else
{
}
else
{
WARN
(
"Unknown wave format: %04x
\n
"
,
fmt
->
wFormatTag
);
WARN
(
"Unknown wave format: %04x
\n
"
,
fmt
->
wFormatTag
);
hr
=
AUDCLNT_E_UNSUPPORTED_FORMAT
;
hr
=
AUDCLNT_E_UNSUPPORTED_FORMAT
;
...
...
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