63 format.byte_format = AO_FMT_LITTLE;
123 format.byte_format = AO_FMT_LITTLE;
144 warning(
"volume changes not supported with libao-output\n");
155 error(
"No space to queue audio packet\n");
180 static long prev_s, prev_us;
181 unsigned int duration;
208 next_tick = (
packet->tick + 65535) % 65536;
224 if (
This->channels == 2)
247 duration = ((tv.
tv_sec - prev_s) * 1000000 + (tv.
tv_usec - prev_us)) / 1000;
249 if (
packet->tick > next_tick)
252 if ((
out->p ==
out->end) || duration > next_tick -
packet->tick + 500)
257 if (
abs((next_tick -
packet->tick) - duration) > 20)
259 DEBUG((
"duration: %d, calc: %d, ", duration, next_tick -
packet->tick));
260 DEBUG((
"last: %d, is: %d, should: %d\n",
packet->tick,
261 (
packet->tick + duration) % 65536, next_tick % 65536));
#define gettimeofday(tv, tz)
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 memcpy(s1, s2, n)
void rdpsnd_send_completion(RDPCLIENT *This, uint16 tick, uint8 packet_index)
static unsigned int queue_lo
static short g_samplewidth
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)
static unsigned int queue_hi
static struct audio_packet packet_queue[MAX_QUEUE]