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
bed73e9e
Commit
bed73e9e
authored
May 08, 2011
by
Gerald Pfeifer
Committed by
Alexandre Julliard
May 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss.drv: Support platforms that do not feature AFMT_FLOAT.
parent
051b64b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+4
-0
No files found.
dlls/wineoss.drv/mmdevdrv.c
View file @
bed73e9e
...
...
@@ -532,6 +532,7 @@ static int get_oss_format(const WAVEFORMATEX *fmt)
return
-
1
;
}
#ifdef AFMT_FLOAT
if
(
fmt
->
wFormatTag
==
WAVE_FORMAT_IEEE_FLOAT
||
(
fmt
->
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
&&
IsEqualGUID
(
&
fmtex
->
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
))){
...
...
@@ -540,6 +541,7 @@ static int get_oss_format(const WAVEFORMATEX *fmt)
return
AFMT_FLOAT
;
}
#endif
return
-
1
;
}
...
...
@@ -1017,9 +1019,11 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient *iface,
if
(
formats
&
AFMT_S16_LE
){
fmt
->
Format
.
wBitsPerSample
=
16
;
fmt
->
SubFormat
=
KSDATAFORMAT_SUBTYPE_PCM
;
#ifdef AFMT_FLOAT
}
else
if
(
formats
&
AFMT_FLOAT
){
fmt
->
Format
.
wBitsPerSample
=
32
;
fmt
->
SubFormat
=
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
;
#endif
}
else
if
(
formats
&
AFMT_U8
){
fmt
->
Format
.
wBitsPerSample
=
8
;
fmt
->
SubFormat
=
KSDATAFORMAT_SUBTYPE_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