diff -ruN uade-9999.orig/src/frontends/audacious/plugin.c uade-9999/src/frontends/audacious/plugin.c --- uade-9999.orig/src/frontends/audacious/plugin.c 2007-09-18 18:01:46.000000000 +0200 +++ uade-9999/src/frontends/audacious/plugin.c 2007-10-01 14:37:35.000000000 +0200 @@ -481,7 +481,11 @@ uade_change_subsong(&effects, &config, uadesong, &uadeipc); while (playhandle->output->buffer_playing()) +#if __AUDACIOUS_PLUGIN_API__ >= 6 + g_usleep(10000); +#else xmms_usleep(10000); +#endif playhandle->output->flush(0); @@ -502,7 +506,11 @@ /* We must drain the audio fast if abort_playing happens (e.g. the user changes song when we are here waiting the sound device) */ while (playhandle->output->buffer_playing() && abort_playing == 0) +#if __AUDACIOUS_PLUGIN_API__ >= 6 + g_usleep(10000); +#else xmms_usleep(10000); +#endif break; }