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 1024:c67f2d61ab97
prev736:a02d1475ccfd
author nkeynes
date Fri Feb 24 21:17:47 2012 +1000 (10 years ago)
permissions -rw-r--r--
last change Factor video_width/video_height out into video_gl.c
Convert immediate-mode bits in video_gl.c into a structure for glDrawArray
Move setOrtho into defineOrthoMatrix in glutil.c
Rearrange various GL settings to keep a consistent state
file annotate diff log raw
1.1 --- a/src/drivers/audio_esd.c Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/drivers/audio_esd.c Fri Feb 24 21:17:47 2012 +1000
1.3 @@ -21,11 +21,11 @@
1.4 #include "aica/audio.h"
1.5 #include "dream.h"
1.6
1.7 -int esd_handle = -1;
1.8 -int esd_sample_size = 1;
1.9 +static int esd_handle = -1;
1.10 +static int esd_sample_size = 1;
1.11
1.12
1.13 -gboolean audio_esd_init()
1.14 +static gboolean audio_esd_init()
1.15 {
1.16 int format = DEFAULT_SAMPLE_FORMAT;
1.17 int rate = DEFAULT_SAMPLE_RATE;
1.18 @@ -51,7 +51,7 @@
1.19 return TRUE;
1.20 }
1.21
1.22 -gboolean audio_esd_process_buffer( audio_buffer_t buffer )
1.23 +static gboolean audio_esd_process_buffer( audio_buffer_t buffer )
1.24 {
1.25 if( esd_handle != -1 ) {
1.26 write( esd_handle, buffer->data, buffer->length );
1.27 @@ -62,16 +62,17 @@
1.28 }
1.29 }
1.30
1.31 -gboolean audio_esd_shutdown()
1.32 +static gboolean audio_esd_shutdown()
1.33 {
1.34 close(esd_handle);
1.35 esd_handle = -1;
1.36 return TRUE;
1.37 }
1.38
1.39 -struct audio_driver audio_esd_driver = {
1.40 +static struct audio_driver audio_esd_driver = {
1.41 "esd",
1.42 N_("Enlightened Sound Daemon driver"),
1.43 + 30,
1.44 DEFAULT_SAMPLE_RATE,
1.45 DEFAULT_SAMPLE_FORMAT,
1.46 audio_esd_init,
1.47 @@ -80,3 +81,4 @@
1.48 NULL,
1.49 audio_esd_shutdown};
1.50
1.51 +AUDIO_DRIVER( "esd", audio_esd_driver );
.