26#define RDPSND_SET_VOLUME 3
27#define RDPSND_UNKNOWN4 4
28#define RDPSND_COMPLETION 5
29#define RDPSND_SERVERTICK 6
30#define RDPSND_NEGOTIATE 7
48 hexdump(
s->channel_hdr + 8,
s->end -
s->channel_hdr - 8);
70 unsigned int in_format_count,
i;
84 device_available =
True;
87 This->rdpsnd.format_count = 0;
90 for (
i = 0;
i < in_format_count;
i++)
116 This->rdpsnd.format_count++;
134 for (
i = 0;
i <
This->rdpsnd.format_count;
i++)
174 static uint8 packet_index;
175 static BOOL awaiting_data_packet;
182 if (awaiting_data_packet)
186 error(
"RDPSND: Invalid format index\n");
190 if (!
This->rdpsnd.device_open || (
format !=
This->rdpsnd.current_format))
209 awaiting_data_packet =
False;
223 awaiting_data_packet =
True;
237 if (
This->rdpsnd.device_open)
251 This->rdpsnd.channel =
254 return (
This->rdpsnd.channel !=
NULL);
VCHANNEL * channel_register(char *name, uint32 flags, void(*callback)(STREAM))
STREAM channel_init(VCHANNEL *channel, uint32 length)
void channel_send(STREAM s, VCHANNEL *channel)
#define CHANNEL_OPTION_ENCRYPT_RDP
#define CHANNEL_OPTION_INITIALIZED
#define out_uint32_le(s, v)
#define in_uint16_le(s, v)
#define in_uint8a(s, v, n)
#define out_uint16_le(s, v)
#define s_check_rem(s, n)
#define in_uint32_le(s, v)
void unimpl(char *format,...)
void hexdump(unsigned char *p, unsigned int len)
GLuint GLuint GLsizei GLenum type
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
int const JOCTET unsigned int datalen
static STREAM rdpsnd_init_packet(RDPCLIENT *This, uint16 type, uint16 size)
void rdpsnd_send_completion(RDPCLIENT *This, uint16 tick, uint8 packet_index)
#define RDPSND_COMPLETION
static void rdpsnd_process_negotiate(RDPCLIENT *This, STREAM in)
static void rdpsnd_send(RDPCLIENT *This, STREAM s)
#define RDPSND_SET_VOLUME
static void rdpsnd_process(RDPCLIENT *This, STREAM s)
BOOL rdpsnd_init(RDPCLIENT *This)
#define RDPSND_SERVERTICK
static void rdpsnd_process_servertick(RDPCLIENT *This, STREAM in)
BOOL wave_out_format_supported(WAVEFORMATEX *pwfx)
void wave_out_write(STREAM s, uint16 tick, uint8 index)
BOOL wave_out_set_format(WAVEFORMATEX *pwfx)
void wave_out_close(void)
void wave_out_volume(uint16 left, uint16 right)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out