--- sourceforge.net/trunk/rdesktop/rdpsnd_sun.c 2003/12/11 14:59:54 560 +++ sourceforge.net/trunk/rdesktop/rdpsnd_sun.c 2003/12/11 15:07:04 561 @@ -87,6 +87,9 @@ /* Flush the audiobuffer */ ioctl(g_dsp_fd, I_FLUSH, FLUSHW); #endif +#if defined AUDIO_FLUSH + ioctl(g_dsp_fd, AUDIO_FLUSH, NULL); +#endif close(g_dsp_fd); }