[AD] alsamidi fix

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Following a bug report on allegro.cc:
http://www.allegro.cc/forums/view_thread.php?_id=356681&#target
I made this very small patch. Can't test if it fixes the problem, since
I don't have a working alsamidi, but it looks a lot like it might.

-- 
Elias Pschernig <elias@xxxxxxxxxx>
--- ../cvs/allegro/src/unix/alsamidi.c	2003-10-29 11:52:02.000000000 +0100
+++ src/unix/alsamidi.c	2004-05-03 15:15:08.000000000 +0200
@@ -157,7 +157,7 @@ static int alsa_rawmidi_init(int input, 
 #if ALLEGRO_ALSA_VERSION == 9
       device = get_config_string(uconvert_ascii("sound", tmp1),
 				 uconvert_ascii("alsa_rawmidi_device", tmp2),
-				 0);
+				 "default");
 
       err = snd_rawmidi_open(NULL, &rawmidi_handle, device, 0);
 #else  /* ALLEGRO_ALSA_VERSION == 5 */


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/