rename WAVEOUTBUF to WAVEOUTLEN and increase it to 1024 bytes

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1289 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2006-10-01 22:30:34 +00:00
parent 23ea0a9173
commit 188b928bfa

View File

@ -29,7 +29,7 @@
#include <ao/ao.h> #include <ao/ao.h>
#include <sys/time.h> #include <sys/time.h>
#define WAVEOUTBUF 512 #define WAVEOUTLEN 1024
static ao_device *o_device = NULL; static ao_device *o_device = NULL;
static int default_driver; static int default_driver;
@ -148,7 +148,7 @@ libao_play(void)
next_tick = rdpsnd_queue_next_tick(); next_tick = rdpsnd_queue_next_tick();
len = (WAVEOUTBUF > (out->end - out->p)) ? (out->end - out->p) : WAVEOUTBUF; len = (WAVEOUTLEN > (out->end - out->p)) ? (out->end - out->p) : WAVEOUTLEN;
ao_play(o_device, (char *) out->p, len); ao_play(o_device, (char *) out->p, len);
out->p += len; out->p += len;