diff options
author | tron <tron> | 1998-02-15 22:02:40 +0000 |
---|---|---|
committer | tron <tron> | 1998-02-15 22:02:40 +0000 |
commit | d72aa4d7ebc1ca7ef209e3f5439d03b675320824 (patch) | |
tree | ea4f754c2c03206d1a567d707269e53e0d08df10 /graphics | |
parent | 396bfa136d042ac98177337f691cbfed8e2fda26 (diff) | |
download | pkgsrc-d72aa4d7ebc1ca7ef209e3f5439d03b675320824.tar.gz |
Patch by Roland C. Dowdeswell to fix audio playback for NetBSD >=1.3.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/xanim/patches/patch-ac | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/graphics/xanim/patches/patch-ac b/graphics/xanim/patches/patch-ac new file mode 100644 index 00000000000..60ce8e1bdee --- /dev/null +++ b/graphics/xanim/patches/patch-ac @@ -0,0 +1,33 @@ +--- xa_audio.c.orig Sun Jan 26 17:22:03 1997 ++++ xa_audio.c Sun Feb 15 21:34:01 1998 +@@ -4480,6 +4480,22 @@ + a_info.blocksize = 1024; + ioctl(devAudio, AUDIO_SETINFO, &a_info); + AUDIO_INITINFO(&a_info); ++#ifdef AUDIO_ENCODING_SLINEAR ++ /* Use new encoding names */ ++ a_info.play.encoding = AUDIO_ENCODING_SLINEAR; ++ ioctl(devAudio, AUDIO_SETINFO, &a_info); ++ AUDIO_INITINFO(&a_info); ++ a_info.mode = AUMODE_PLAY | AUMODE_PLAY_ALL; ++ ioctl(devAudio, AUDIO_SETINFO, &a_info); ++ AUDIO_INITINFO(&a_info); ++ a_info.play.precision = 16; ++ if (ioctl(devAudio, AUDIO_SETINFO, &a_info) < 0) { ++ AUDIO_INITINFO(&a_info); ++ a_info.play.encoding = AUDIO_ENCODING_ULINEAR; ++ a_info.play.precision = 8; ++ ioctl(devAudio, AUDIO_SETINFO, &a_info); ++ } ++#else + a_info.play.encoding = AUDIO_ENCODING_PCM16; + ioctl(devAudio, AUDIO_SETINFO, &a_info); + AUDIO_INITINFO(&a_info); +@@ -4488,6 +4504,7 @@ + AUDIO_INITINFO(&a_info); + a_info.play.precision = 16; + ioctl(devAudio, AUDIO_SETINFO, &a_info); ++#endif + AUDIO_INITINFO(&a_info); + a_info.play.sample_rate = 11025; + ioctl(devAudio, AUDIO_SETINFO, &a_info); |