Search
lxdream.org :: lxdream/src/drivers/audio_esd.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/audio_esd.c
changeset 73:0bb57e51ac9e
prev66:2ec5b6eb75e5
next74:771ee2b1e4f8
author nkeynes
date Thu Jan 12 11:30:19 2006 +0000 (15 years ago)
permissions -rw-r--r--
last change Render multiple samples per shot, should be mildly faster
Move timer logic down into armcore
Minor tweaks
file annotate diff log raw
1.1 --- a/src/drivers/audio_esd.c Tue Jan 10 13:56:54 2006 +0000
1.2 +++ b/src/drivers/audio_esd.c Thu Jan 12 11:30:19 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: audio_esd.c,v 1.1 2006-01-10 13:56:54 nkeynes Exp $
1.6 + * $Id: audio_esd.c,v 1.2 2006-01-12 11:30:19 nkeynes Exp $
1.7 *
1.8 * The esd (esound) audio driver
1.9 *
1.10 @@ -31,11 +31,9 @@
1.11 esd_sample_size = 1;
1.12 if( format & AUDIO_FMT_16BIT ) {
1.13 esd_format |= ESD_BITS16;
1.14 - esd_sample_size = 1;
1.15 } else esd_format |= ESD_BITS8;
1.16 if( format & AUDIO_FMT_STEREO ) {
1.17 esd_format |= ESD_STEREO;
1.18 - esd_sample_size = esd_sample_size << 1 ;
1.19 }
1.20 else esd_format |= ESD_MONO;
1.21
1.22 @@ -46,7 +44,7 @@
1.23 gboolean esd_audio_process_buffer( audio_buffer_t buffer )
1.24 {
1.25 if( esd_handle != -1 ) {
1.26 - write( esd_handle, buffer->data, buffer->length * esd_sample_size );
1.27 + write( esd_handle, buffer->data, buffer->length );
1.28 DEBUG("Wrote buffer" );
1.29 } else {
1.30 ERROR( "ESD not initialized" );
.