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
303d9368
Commit
303d9368
authored
Apr 10, 2003
by
Robert Reif
Committed by
Alexandre Julliard
Apr 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better error messages.
parent
c2ebe1ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
audio.c
dlls/winmm/wineoss/audio.c
+12
-14
No files found.
dlls/winmm/wineoss/audio.c
View file @
303d9368
...
@@ -388,18 +388,16 @@ static DWORD OSS_OpenDevice(OSS_DEVICE* ossdev, unsigned req_access,
...
@@ -388,18 +388,16 @@ static DWORD OSS_OpenDevice(OSS_DEVICE* ossdev, unsigned req_access,
/* check we really open with the same parameters */
/* check we really open with the same parameters */
if
(
ossdev
->
open_access
!=
req_access
)
if
(
ossdev
->
open_access
!=
req_access
)
{
{
WARN
(
"Mismatch in access..
.
\n
"
);
ERR
(
"FullDuplex: Mismatch in access. Your sound device is not full duplex capable
.
\n
"
);
return
WAVERR_BADFORMAT
;
return
WAVERR_BADFORMAT
;
}
}
/* FIXME: if really needed, we could do, in this case, on the fly
/* check if the audio parameters are the same */
* PCM conversion (using the MSACM ad hoc driver)
if
(
ossdev
->
sample_rate
!=
sample_rate
||
*/
if
(
ossdev
->
audio_fragment
!=
(
frag
?
*
frag
:
0
)
||
ossdev
->
sample_rate
!=
sample_rate
||
ossdev
->
stereo
!=
stereo
||
ossdev
->
stereo
!=
stereo
||
ossdev
->
format
!=
fmt
)
ossdev
->
format
!=
fmt
)
{
{
/* This is not a fatal error because MSACM might do the remapping */
WARN
(
"FullDuplex: mismatch in PCM parameters for input and output
\n
"
WARN
(
"FullDuplex: mismatch in PCM parameters for input and output
\n
"
"OSS doesn't allow us different parameters
\n
"
"OSS doesn't allow us different parameters
\n
"
"audio_frag(%x/%x) sample_rate(%d/%d) stereo(%d/%d) fmt(%d/%d)
\n
"
,
"audio_frag(%x/%x) sample_rate(%d/%d) stereo(%d/%d) fmt(%d/%d)
\n
"
,
...
@@ -409,6 +407,12 @@ static DWORD OSS_OpenDevice(OSS_DEVICE* ossdev, unsigned req_access,
...
@@ -409,6 +407,12 @@ static DWORD OSS_OpenDevice(OSS_DEVICE* ossdev, unsigned req_access,
ossdev
->
format
,
fmt
);
ossdev
->
format
,
fmt
);
return
WAVERR_BADFORMAT
;
return
WAVERR_BADFORMAT
;
}
}
/* check if the fragment sizes are the same */
if
(
ossdev
->
audio_fragment
!=
(
frag
?
*
frag
:
0
)
)
{
ERR
(
"FullDuplex: Playback and Capture hardware acceleration levels are different.
\n
"
"Use:
\"
HardwareAcceleration
\"
=
\"
Emulation
\"
in the [dsound] section of your config file.
\n
"
);
return
WAVERR_BADFORMAT
;
}
if
(
GetCurrentThreadId
()
!=
ossdev
->
owner_tid
)
if
(
GetCurrentThreadId
()
!=
ossdev
->
owner_tid
)
{
{
WARN
(
"Another thread is trying to access audio...
\n
"
);
WARN
(
"Another thread is trying to access audio...
\n
"
);
...
@@ -774,12 +778,6 @@ LONG OSS_WaveInit(void)
...
@@ -774,12 +778,6 @@ LONG OSS_WaveInit(void)
int
i
;
int
i
;
TRACE
(
"()
\n
"
);
TRACE
(
"()
\n
"
);
/* FIXME: only one device is supported */
memset
(
&
OSS_Devices
,
0
,
sizeof
(
OSS_Devices
));
/* FIXME: should check that dsp actually points to dsp0, or that dsp0 exists
* we should also be able to configure (bitmap) which devices we want to use...
* - or even store the name of all drivers in our configuration
*/
for
(
i
=
0
;
i
<
MAX_WAVEDRV
;
++
i
)
for
(
i
=
0
;
i
<
MAX_WAVEDRV
;
++
i
)
{
{
if
(
i
==
0
)
{
if
(
i
==
0
)
{
...
@@ -794,7 +792,7 @@ LONG OSS_WaveInit(void)
...
@@ -794,7 +792,7 @@ LONG OSS_WaveInit(void)
INIT_GUID
(
OSS_Devices
[
i
].
dsc_guid
,
0xe437ebb6
,
0x534f
,
0x11ce
,
0x9f
,
0x53
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x80
+
i
);
INIT_GUID
(
OSS_Devices
[
i
].
dsc_guid
,
0xe437ebb6
,
0x534f
,
0x11ce
,
0x9f
,
0x53
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x80
+
i
);
}
}
/* start with output device */
/* start with output device
s
*/
for
(
i
=
0
;
i
<
MAX_WAVEDRV
;
++
i
)
for
(
i
=
0
;
i
<
MAX_WAVEDRV
;
++
i
)
{
{
if
(
OSS_WaveOutInit
(
&
OSS_Devices
[
i
]))
if
(
OSS_WaveOutInit
(
&
OSS_Devices
[
i
]))
...
@@ -805,7 +803,7 @@ LONG OSS_WaveInit(void)
...
@@ -805,7 +803,7 @@ LONG OSS_WaveInit(void)
}
}
}
}
/* then do input device */
/* then do input device
s
*/
for
(
i
=
0
;
i
<
MAX_WAVEDRV
;
++
i
)
for
(
i
=
0
;
i
<
MAX_WAVEDRV
;
++
i
)
{
{
if
(
OSS_WaveInInit
(
&
OSS_Devices
[
i
]))
if
(
OSS_WaveInInit
(
&
OSS_Devices
[
i
]))
...
...
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