changeset 102:de414e40f772 trunk

[svn] Normal sound decoding, now to just figure out how to stop the decode_thread when we need to.
author nenolod
date Wed, 02 Nov 2005 18:38:59 -0800
parents 59ba6595fdf1
children 948027ac55be
files Plugins/Input/console/Audacious_Driver.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/console/Audacious_Driver.cpp	Tue Nov 01 23:15:57 2005 -0800
+++ b/Plugins/Input/console/Audacious_Driver.cpp	Wed Nov 02 18:38:59 2005 -0800
@@ -92,7 +92,7 @@
 
 	decode_thread = g_thread_create(play_loop, spc, TRUE, NULL);
 
-        if (!console_ip.output->open_audio(MY_FMT, 32000, 1))
+        if (!console_ip.output->open_audio(MY_FMT, 32000, 2))
                  return;
 
 	printf("decode_thread started.\n");
@@ -158,7 +158,7 @@
 			MY_FMT, 1, 4096, buf);
 	        while(console_ip.output->buffer_free() < 4096)
 			xmms_usleep(10000);
-		console_ip.output->write_audio(buf, 4096);
+		console_ip.output->write_audio(buf, 8192);
 	}
 
         delete spc;