aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/zsnes/files
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2010-06-07 04:39:21 +0800
committernaddy <naddy@FreeBSD.org>2010-06-07 04:39:21 +0800
commita7e23ef2423b94523671d838b70763ecfea3ca60 (patch)
tree3d3fdf131c6f5d30a25430d16a62f0d82e33445f /emulators/zsnes/files
parent14d2f864caf57bceba3f0ac72ea827fafd27743d (diff)
downloadfreebsd-ports-gnome-a7e23ef2423b94523671d838b70763ecfea3ca60.tar.gz
freebsd-ports-gnome-a7e23ef2423b94523671d838b70763ecfea3ca60.tar.zst
freebsd-ports-gnome-a7e23ef2423b94523671d838b70763ecfea3ca60.zip
Bump PORTREVISION after libao update and handle API incompatibility.
Diffstat (limited to 'emulators/zsnes/files')
-rw-r--r--emulators/zsnes/files/patch-linux_audio.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/emulators/zsnes/files/patch-linux_audio.c b/emulators/zsnes/files/patch-linux_audio.c
new file mode 100644
index 000000000000..a88985a34fa5
--- /dev/null
+++ b/emulators/zsnes/files/patch-linux_audio.c
@@ -0,0 +1,10 @@
+--- linux/audio.c.orig 2010-06-06 14:56:20.000000000 +0200
++++ linux/audio.c 2010-06-06 14:56:41.000000000 +0200
+@@ -166,6 +166,7 @@ static int SoundInit_ao()
+ if (driver_id < 0) { driver_id = ao_default_driver_id(); }
+
+ ao_sample_format driver_format;
++ memset(&driver_format, 0, sizeof(driver_format));
+ driver_format.bits = 16;
+ driver_format.channels = StereoSound+1;
+ driver_format.rate = freqtab[SoundQuality = ((SoundQuality > 6) ? 1 : SoundQuality)];