2013-09-26 17:14:40 +02:00

21 lines
513 B
Plaintext

$NetBSD: patch-aw,v 1.2 2011/07/08 18:18:16 drochner Exp $
--- xdao/SoundIF-ao.cc.orig 2005-04-22 02:01:49.000000000 +0000
+++ xdao/SoundIF-ao.cc
@@ -18,6 +18,7 @@
*/
#include <ao/ao.h>
+#include <string.h>
#include "SoundIF.h"
#include "Sample.h"
@@ -37,6 +38,7 @@ SoundIF::SoundIF()
impl_ = new SoundIFImpl;
impl_->driverId = ao_default_driver_id();
+ memset(&impl_->format, 0, sizeof(impl_->format));
impl_->format.bits = 16;
impl_->format.rate = 44100;
impl_->format.channels = 2;