rink.nu / projects / musixbox / changeset 312:9c5507eef4cc
Fully initialize the libao structure before using it
authorRink Springer <rink@rink.nu>
Sun Oct 09 21:09:06 2011 +0200 (7 months ago ago)
changeset 3129c5507eef4cc
parent 311 126b48c35619
child 313 98411bdf3103
Fully initialize the libao structure before using it
     1.1 --- a/lib/core/output_ao.cc	Sun Aug 28 20:29:05 2011 +0200
     1.2 +++ b/lib/core/output_ao.cc	Sun Oct 09 21:09:06 2011 +0200
     1.3 @@ -1,4 +1,5 @@
     1.4  #include <ao/ao.h>
     1.5 +#include <string.h>
     1.6  #include "exceptions.h"
     1.7  #include "output_ao.h"
     1.8  
     1.9 @@ -15,6 +16,7 @@
    1.10  
    1.11  	drvid = ao_default_driver_id();
    1.12  
    1.13 +	memset(&format, 0, sizeof(format));
    1.14  	format.bits = 16;
    1.15  	format.channels = 2;
    1.16  	format.rate = 44100;
Powered by FreeBSD, PostgreSQL and Perl
© 2001 - 2011 Rink Springer