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
bcb13879
Commit
bcb13879
authored
Feb 06, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Feb 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show sound card info in trace.
parent
81ec7fd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
audio.c
dlls/winmm/wineoss/audio.c
+26
-1
No files found.
dlls/winmm/wineoss/audio.c
View file @
bcb13879
...
...
@@ -587,9 +587,34 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* ossdev)
* The driver may support other formats and do the conversions in
* software which is why we don't use this value
*/
int
oss_mask
;
int
oss_mask
,
oss_caps
;
ioctl
(
ossdev
->
fd
,
SNDCTL_DSP_GETFMTS
,
&
oss_mask
);
TRACE
(
"OSS dsp out mask=%08x
\n
"
,
oss_mask
);
if
(
oss_mask
&
AFMT_MU_LAW
)
TRACE
(
"AFMT_MU_LAW "
);
if
(
oss_mask
&
AFMT_A_LAW
)
TRACE
(
"AFMT_A_LAW "
);
if
(
oss_mask
&
AFMT_IMA_ADPCM
)
TRACE
(
"AFMT_IMA_ADPCM "
);
if
(
oss_mask
&
AFMT_U8
)
TRACE
(
"AFMT_U8 "
);
if
(
oss_mask
&
AFMT_S16_LE
)
TRACE
(
"AFMT_S16_LE "
);
if
(
oss_mask
&
AFMT_S16_BE
)
TRACE
(
"AFMT_S16_BE "
);
if
(
oss_mask
&
AFMT_S8
)
TRACE
(
"AFMT_S8 "
);
if
(
oss_mask
&
AFMT_U16_LE
)
TRACE
(
"AFMT_U16_LE "
);
if
(
oss_mask
&
AFMT_U16_BE
)
TRACE
(
"AFMT_U16_BE "
);
if
(
oss_mask
&
AFMT_MPEG
)
TRACE
(
"AFMT_MPEG "
);
if
(
oss_mask
&
AFMT_AC3
)
TRACE
(
"AFMT_AC3 "
);
TRACE
(
")
\n
"
);
ioctl
(
ossdev
->
fd
,
SNDCTL_DSP_GETCAPS
,
&
oss_caps
);
TRACE
(
"Caps=%08x
\n
"
,
oss_caps
);
TRACE
(
"
\t
Revision: %d
\n
"
,
oss_caps
&
DSP_CAP_REVISION
);
TRACE
(
"
\t
Duplex: %s
\n
"
,
oss_caps
&
DSP_CAP_DUPLEX
?
"true"
:
"false"
);
TRACE
(
"
\t
Realtime: %s
\n
"
,
oss_caps
&
DSP_CAP_REALTIME
?
"true"
:
"false"
);
TRACE
(
"
\t
Batch: %s
\n
"
,
oss_caps
&
DSP_CAP_BATCH
?
"true"
:
"false"
);
TRACE
(
"
\t
Coproc: %s
\n
"
,
oss_caps
&
DSP_CAP_COPROC
?
"true"
:
"false"
);
TRACE
(
"
\t
Trigger: %s
\n
"
,
oss_caps
&
DSP_CAP_TRIGGER
?
"true"
:
"false"
);
TRACE
(
"
\t
Mmap: %s
\n
"
,
oss_caps
&
DSP_CAP_MMAP
?
"true"
:
"false"
);
#ifdef DSP_CAP_MULTI
TRACE
(
"
\t
Multi: %s
\n
"
,
oss_caps
&
DSP_CAP_MULTI
?
"true"
:
"false"
);
#endif
TRACE
(
"
\t
Bind: %s
\n
"
,
oss_caps
&
DSP_CAP_BIND
?
"true"
:
"false"
);
}
/* We must first set the format and the stereo mode as some sound cards
...
...
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