25#include <dmedia/audio.h>
29#define IRIX_MAX_VOL 65535
60#if (defined(IRIX_DEBUG))
64 if (alGetParamInfo(AL_DEFAULT_OUTPUT, AL_GAIN, &pinfo) < 0)
67 alGetErrorString(oserror()));
72#if (defined(IRIX_DEBUG))
73 fprintf(
stderr,
"wave_out_open: minvol = %lf, maxvol= %lf, range = %lf.\n",
83 alGetErrorString(oserror()));
91 alGetErrorString(oserror()));
95#if (defined(IRIX_DEBUG))
105#if (defined(IRIX_DEBUG))
119#if (defined(IRIX_DEBUG))
141 int frameSize, channelCount;
144#if (defined(IRIX_DEBUG))
153 width = AL_SAMPLE_16;
155#if (defined(B_ENDIAN))
181 fprintf(
stderr,
"wave_out_set_format: alOpenPort failed: %s\n",
182 alGetErrorString(oserror()));
193 if (frameSize == 0 || channelCount == 0)
195 fprintf(
stderr,
"wave_out_set_format: bad frameSize or channelCount\n");
206 alGetErrorString(oserror()));
215#if (defined(IRIX_DEBUG))
224 double gainleft, gainright;
228#if (defined(IRIX_DEBUG))
239 pv[0].param = AL_GAIN;
240 pv[0].value.ptr = gain;
242 if (alSetParams(AL_DEFAULT_OUTPUT, pv, 1) < 0)
245 alGetErrorString(oserror()));
249#if (defined(IRIX_DEBUG))
305 for (
i = 0;
i <
out->end -
out->p;
i += 2)
331#if (defined(IRIX_DEBUG))
GLint GLint GLsizei width
GLenum const GLfloat * params
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 const char mbstate_t *static wchar_t const char mbstate_t *static const wchar_t int *static double
int usleep(unsigned int useconds)
void rdpsnd_send_completion(RDPCLIENT *This, uint16 tick, uint8 packet_index)
static unsigned int queue_lo
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]