21 lines
713 B
Text
21 lines
713 B
Text
$NetBSD: patch-aj,v 1.1 2005/06/04 19:05:38 adrianp Exp $
|
|
|
|
--- xdao/SoundIF-solaris.cc.orig 2004-07-04 22:05:21.000000000 +0200
|
|
+++ xdao/SoundIF-solaris.cc
|
|
@@ -42,6 +42,7 @@
|
|
* Sound interface for Solaris. Thanks to Tobias Oetiker <oetiker@ee.ethz.ch>.
|
|
*/
|
|
|
|
+#include <sys/types.h>
|
|
#include <sys/audioio.h>
|
|
#include <stdio.h>
|
|
#include <assert.h>
|
|
@@ -194,7 +195,7 @@ int SoundIFImpl::setupDevice()
|
|
auinf.play.sample_rate=44100;
|
|
auinf.play.channels=2;
|
|
auinf.play.precision=16;
|
|
- auinf.play.encoding=AUDIO_ENCODING_LINEAR;
|
|
+ auinf.play.encoding=AUDIO_ENCODING_SLINEAR_BE;
|
|
|
|
if (ioctl(dspFd_, AUDIO_SETINFO, &auinf) < 0) {
|
|
message(-1, _("Cannot setup audio interface: %s"), strerror(errno));
|