[AD] Found the problem with the setup sound core's |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Allegro Developers <conductors@xxxxxxxxxx>
- Subject: [AD] Found the problem with the setup sound core's
- From: Grzegorz Adam Hankiewicz <gradha@xxxxxxxxxx>
- Date: Wed, 22 Dec 1999 23:33:36 +0100 (CET)
Hi.
After linking the setup program with static debug libs I got everything I
needed. The problem looks quite simple: I don't have my sound card
configured for midi, so autodetection constantly tells about not being
able to detect synth support. Ok, so in order to enter the test option I
select OSS driver as digital, and none as midi driver. Then, playing wav's
in the background and pressing the test button gives:
backtrace
#0 0x806d201 in all_notes_off (channel=0) at ./src/midi.c:557
#1 0x806e242 in play_midi (midi=0x0, loop=0) at ./src/midi.c:1197
#2 0x806e33c in stop_midi () at ./src/midi.c:1252
#3 0x806df08 in midi_exit () at ./src/midi.c:1028
#4 0x8070956 in install_sound (digi=-1, midi=-1, cfg_path=0x0) at ./src/sound.c:364
#5 0x804bd56 in init_sound (msg=0x80a4f37 "Sound initialization failed!") at ./setup/setup.c:903
#6 0x804ec25 in main_handler (c=1) at ./setup/setup.c:2320
#7 0x804b5a9 in update () at ./setup/setup.c:734
#8 0x804f901 in _mangled_main () at ./setup/setup.c:2626
#9 0x8078f6e in main (argc=1, argv=0xbffffd74) at ./src/unix/umain.c:39
Looks like at src/sound.c is the digital driver detection. It fails since
I am playing wavs. Now, it calls midi_exit, and there's the problem, it is
not defined. The function calls reach all_notes_off, where it tries to
access midi_driver->raw_midi. print midi_driver shows 0x0, and obviously
trying to do midi_driver->raw_midi dumps core.
If I repeat the same without wav files I can enter without problems the
test dialog and ring the bells. There lies the problem: calling midi_exit
with midi_driver being NULL. I don't know however where/what should I
change. I would change midi_exit to:
static void midi_exit(void)
{
if (midi_exit) stop_midi();
}
But I don't really know if that doesn't leave more midi_driver == NULL
leaks somewhere else.
After modprobing adlib_card OSS works with midi, but I still can't hear
any midi. I guess this is because I didn't configure my card yet. In fact,
I have AWE and OPL support disabled in the kernel...
Grzegorz Adam Hankiewicz - gradha@xxxxxxxxxx
Gogosoftware - http://welcome.to/gogosoftware/
WinError 032: Multitasking attempted: system confused.