# HG changeset patch # User nenolod # Date 1130985539 28800 # Node ID de414e40f772cec0da5a778fbaa2c2dc6433890f # Parent 59ba6595fdf1de040d21a4d6051228bc20ec5133 [svn] Normal sound decoding, now to just figure out how to stop the decode_thread when we need to. diff -r 59ba6595fdf1 -r de414e40f772 Plugins/Input/console/Audacious_Driver.cpp --- 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;