Permalink
Browse files

Properly initialize libao. Patch by Kjetil|.

  • Loading branch information...
1 parent dbca419 commit 47168d45b3dbcf1f00cc8910da7b2b6d3149896b dstien committed Dec 13, 2010
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/clients/despotify/libao.c
  2. +2 −0 src/clients/simple/libao.c
@@ -27,6 +27,8 @@ void* audio_init(void)
ao_initialize ();
default_driver = ao_default_driver_id ();
+ memset (&format, 0, sizeof(ao_sample_format));
+
format.bits = 16;
format.rate = 44100;
format.channels = 2;
@@ -32,6 +32,8 @@ void* audio_init(void)
ao_initialize ();
default_driver = ao_default_driver_id ();
+ memset (&format, 0, sizeof(ao_sample_format));
+
format.bits = 16;
format.rate = 44100;
format.channels = 2;

0 comments on commit 47168d4

Please sign in to comment.