Go to the source code of this file.
◆ RDPSND_CLOSE
◆ RDPSND_COMPLETION
◆ RDPSND_NEGOTIATE
◆ RDPSND_SERVERTICK
◆ RDPSND_SET_VOLUME
◆ RDPSND_UNKNOWN4
◆ RDPSND_WRITE
◆ rdpsnd_init()
Definition at line 249 of file rdpsnd.c.
250{
251 This->rdpsnd.channel =
254 return (
This->rdpsnd.channel !=
NULL);
255}
VCHANNEL * channel_register(char *name, uint32 flags, void(*callback)(STREAM))
#define CHANNEL_OPTION_ENCRYPT_RDP
#define CHANNEL_OPTION_INITIALIZED
static void rdpsnd_process(RDPCLIENT *This, STREAM s)
◆ rdpsnd_init_packet()
◆ rdpsnd_process()
Definition at line 168 of file rdpsnd.c.
169{
174 static uint8 packet_index;
175 static BOOL awaiting_data_packet;
176
177#ifdef RDPSND_DEBUG
180#endif
181
182 if (awaiting_data_packet)
183 {
185 {
186 error(
"RDPSND: Invalid format index\n");
187 return;
188 }
189
190 if (!
This->rdpsnd.device_open || (
format !=
This->rdpsnd.current_format))
191 {
193 {
195 return;
196 }
198 {
202 return;
203 }
206 }
207
209 awaiting_data_packet =
False;
210 return;
211 }
212
216
218 {
223 awaiting_data_packet =
True;
224 break;
228 break;
231 break;
234 break;
237 if (
This->rdpsnd.device_open)
238 {
240 }
241 break;
242 default:
244 break;
245 }
246}
#define in_uint16_le(s, v)
void unimpl(char *format,...)
void hexdump(unsigned char *p, unsigned int len)
int const JOCTET unsigned int datalen
void rdpsnd_send_completion(RDPCLIENT *This, uint16 tick, uint8 packet_index)
static void rdpsnd_process_negotiate(RDPCLIENT *This, STREAM in)
#define RDPSND_SET_VOLUME
#define RDPSND_SERVERTICK
static void rdpsnd_process_servertick(RDPCLIENT *This, STREAM in)
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)
Referenced by rdpsnd_init().
◆ rdpsnd_process_negotiate()
Definition at line 68 of file rdpsnd.c.
69{
70 unsigned int in_format_count,
i;
74 int readcnt;
75 int discardcnt;
76
80
82 {
84 device_available =
True;
85 }
86
87 This->rdpsnd.format_count = 0;
89 {
90 for (
i = 0;
i < in_format_count;
i++)
91 {
100
101
103 discardcnt = 0;
105 {
110 }
113
115 {
116 This->rdpsnd.format_count++;
118 break;
119 }
120 }
121 }
122
128
133
134 for (
i = 0;
i <
This->rdpsnd.format_count;
i++)
135 {
144 }
145
148}
#define out_uint32_le(s, v)
#define in_uint8a(s, v, n)
#define s_check_rem(s, n)
#define in_uint32_le(s, v)
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,...)
static STREAM rdpsnd_init_packet(RDPCLIENT *This, uint16 type, uint16 size)
static void rdpsnd_send(RDPCLIENT *This, STREAM s)
BOOL wave_out_format_supported(WAVEFORMATEX *pwfx)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Referenced by rdpsnd_process().
◆ rdpsnd_process_servertick()
◆ rdpsnd_send()
◆ rdpsnd_send_completion()