24 #define RDPSND_CLOSE 1 25 #define RDPSND_WRITE 2 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);
#define RDPSND_COMPLETION
#define out_uint16_le(s, v)
void wave_out_close(void)
static void rdpsnd_send(RDPCLIENT *This, STREAM s)
void wave_out_volume(uint16 left, uint16 right)
#define out_uint32_le(s, v)
#define s_check_rem(s, n)
int const JOCTET unsigned int datalen
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
BOOL rdpsnd_init(RDPCLIENT *This)
VCHANNEL * channel_register(char *name, uint32 flags, void(*callback)(STREAM))
#define CHANNEL_OPTION_INITIALIZED
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
static void rdpsnd_process_servertick(RDPCLIENT *This, STREAM in)
static void rdpsnd_process_negotiate(RDPCLIENT *This, STREAM in)
static void rdpsnd_process(RDPCLIENT *This, STREAM s)
void wave_out_write(STREAM s, uint16 tick, uint8 index)
BOOL wave_out_format_supported(WAVEFORMATEX *pwfx)
static STREAM rdpsnd_init_packet(RDPCLIENT *This, uint16 type, uint16 size)
#define in_uint8a(s, v, n)
void hexdump(unsigned char *p, unsigned int len)
void rdpsnd_send_completion(RDPCLIENT *This, uint16 tick, uint8 packet_index)
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
#define RDPSND_SERVERTICK
BOOL wave_out_set_format(WAVEFORMATEX *pwfx)
void unimpl(char *format,...)
GLuint GLuint GLsizei GLenum type
#define in_uint32_le(s, v)
#define RDPSND_SET_VOLUME
void channel_send(STREAM s, VCHANNEL *channel)
#define in_uint16_le(s, v)
#define CHANNEL_OPTION_ENCRYPT_RDP
STREAM channel_init(VCHANNEL *channel, uint32 length)