filename | src/drivers/audio_esd.c |
changeset | 1024:c67f2d61ab97 |
prev | 736:a02d1475ccfd |
author | nkeynes |
date | Fri Mar 02 23:49:10 2012 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Android WIP: * Rename gui_jni.c to gui_android.c - now quite android specific. * Implement generic EGL driver with very minimal Java wrapper * Run emulation in separate thread, and implement simple queue for inter-thread communication. * Add menu/action-bar items for start + reset |
file | annotate | diff | log | raw |
1.1 --- a/src/drivers/audio_esd.c Mon Jul 14 07:44:42 2008 +00001.2 +++ b/src/drivers/audio_esd.c Fri Mar 02 23:49:10 2012 +10001.3 @@ -21,11 +21,11 @@1.4 #include "aica/audio.h"1.5 #include "dream.h"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.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.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.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.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.51 +AUDIO_DRIVER( "esd", audio_esd_driver );
.