Displaying 1 result from an estimated 1 matches for "ao_alsa_internal_t".
2000 Aug 12
1
libao patch: Minor clean up / Byte-order proposal
...rbis-tools/libao/ao_alsa.c 2000/08/13 00:30:01
@@ -38,7 +38,7 @@
typedef struct ao_alsa_internal_s
{
snd_pcm_t *pcm_handle;
- void *buf;
+ char *buf;
int buf_size;
int buf_end;
int card;
@@ -191,9 +191,9 @@
ao_alsa_play (ao_internal_t *state, void* output_samples, uint_32 num_bytes)
{
ao_alsa_internal_t *s = (ao_alsa_internal_t *) state;
- snd_pcm_t *pcm_handle = s->pcm_handle;
int packed = 0;
int copy_len;
+ char *samples = (char *) output_samples;
while (packed < num_bytes)
{
@@ -203,9 +203,7 @@
else
copy_len = s->buf_size-s->buf_end;
- memcpy(s->buf + s->bu...