Commit a9d2fb8e authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

Fixed a problem on BSD.

Fixed a trace.
parent 6d5ba7d4
...@@ -589,7 +589,7 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* ossdev) ...@@ -589,7 +589,7 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* ossdev)
*/ */
int oss_mask, oss_caps; int oss_mask, oss_caps;
ioctl(ossdev->fd, SNDCTL_DSP_GETFMTS, &oss_mask); ioctl(ossdev->fd, SNDCTL_DSP_GETFMTS, &oss_mask);
TRACE("OSS dsp out mask=%08x\n", oss_mask); TRACE("OSS dsp out mask=%08x ( ", oss_mask);
if (oss_mask & AFMT_MU_LAW) TRACE("AFMT_MU_LAW "); if (oss_mask & AFMT_MU_LAW) TRACE("AFMT_MU_LAW ");
if (oss_mask & AFMT_A_LAW) TRACE("AFMT_A_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_IMA_ADPCM) TRACE("AFMT_IMA_ADPCM ");
...@@ -614,7 +614,9 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* ossdev) ...@@ -614,7 +614,9 @@ static BOOL OSS_WaveOutInit(OSS_DEVICE* ossdev)
#ifdef DSP_CAP_MULTI #ifdef DSP_CAP_MULTI
TRACE("\tMulti: %s\n", oss_caps & DSP_CAP_MULTI ? "true" : "false"); TRACE("\tMulti: %s\n", oss_caps & DSP_CAP_MULTI ? "true" : "false");
#endif #endif
#ifdef DSP_CAP_BIND
TRACE("\tBind: %s\n", oss_caps & DSP_CAP_BIND ? "true" : "false"); TRACE("\tBind: %s\n", oss_caps & DSP_CAP_BIND ? "true" : "false");
#endif
} }
/* We must first set the format and the stereo mode as some sound cards /* We must first set the format and the stereo mode as some sound cards
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment