use signed char resample buffer instead of unsigned
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1042 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
acffcd7e9c
commit
985a1155ea
@ -175,7 +175,7 @@ wave_out_play(void)
|
|||||||
{
|
{
|
||||||
struct audio_packet *packet;
|
struct audio_packet *packet;
|
||||||
STREAM out;
|
STREAM out;
|
||||||
unsigned char outbuf[WAVEOUTBUF];
|
char outbuf[WAVEOUTBUF];
|
||||||
int offset, len, i;
|
int offset, len, i;
|
||||||
static long prev_s, prev_us;
|
static long prev_s, prev_us;
|
||||||
unsigned int duration;
|
unsigned int duration;
|
||||||
@ -240,7 +240,7 @@ wave_out_play(void)
|
|||||||
out->p += len;
|
out->p += len;
|
||||||
}
|
}
|
||||||
|
|
||||||
ao_play(o_device, (char *) outbuf, len);
|
ao_play(o_device, outbuf, len);
|
||||||
|
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user