Page MenuHomeFreeBSD

D54038.1790327876.diff
No OneTemporary

Size
645 B
Referenced Files
None
Subscribers
None

D54038.1790327876.diff

diff --git a/share/examples/sound/oss.h b/share/examples/sound/oss.h
--- a/share/examples/sound/oss.h
+++ b/share/examples/sound/oss.h
@@ -112,8 +112,13 @@
}
/* Set sample format */
- if (ioctl(config->fd, SNDCTL_DSP_SETFMT, &config->format) < 0)
+ tmp = config->format;
+ if (ioctl(config->fd, SNDCTL_DSP_SETFMT, &tmp) < 0)
err(1, "Unable to set sample format");
+ if (tmp != config->format)
+ errx(1, "Unable to set sample format to %d."
+ "Check if you can set format to s32le with sndctl.\n",
+ config->format);
/* Set sample channels */
if (ioctl(config->fd, SNDCTL_DSP_CHANNELS, &config->audio_info.max_channels) < 0)

File Metadata

Mime Type
text/plain
Expires
Fri, Sep 25, 9:17 AM (4 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29915949
Default Alt Text
D54038.1790327876.diff (645 B)

Event Timeline