#define RD_STATUS_CANCELLED 0xc0000120
#define RD_STATUS_DIRECTORY_NOT_EMPTY 0xc0000101
/* RDPSND constants */
#define TSSNDCAPS_ALIVE 0x00000001
#define TSSNDCAPS_VOLUME 0x00000002
/* RDPDR constants */
#define RDPDR_MAX_DEVICES 0x10
return EX_OSERR;
#ifdef WITH_RDPSND
if (g_rdpsnd)
if (!rdpsnd_init(rdpsnd_optarg))
{
warning("Initializing sound-support failed!\n");
}
#endif
if (g_lspci_enabled)
#define MAX_FORMATS 10
#define MAX_QUEUE 50
extern RD_BOOL g_rdpsnd;
static VCHANNEL *rdpsnd_channel;
static VCHANNEL *rdpsnddbg_channel;
static struct audio_driver *drivers = NULL;
rdpsnd_reset_state();
if (!current_driver)
if (!current_driver && g_rdpsnd)
device_available = rdpsnd_auto_select();
if (current_driver && !device_available && current_driver->wave_out_open())
out = rdpsnd_init_packet(RDPSND_NEGOTIATE | 0x200, 20 + 18 * format_count);
out_uint32_le(out, 0x00800003); /* flags */
/* if g_rdpsnd, enable the sound device */
uint32 flags = TSSNDCAPS_VOLUME;
flags |= TSSNDCAPS_ALIVE;
out_uint32_le(out, flags); /* TSSNDCAPS flags */
out_uint32(out, 0xffffffff); /* volume */
out_uint32(out, 0); /* pitch */
out_uint16(out, 0); /* UDP port */
XCopyArea(g_display, contents, g_wnd, g_gc, 0, 0, g_width, g_height, 0, 0);
XFreePixmap(g_display, contents);
g_pending_resize=1;
static void