1detect_midi_driver(3) Allegro manual detect_midi_driver(3)
2
3
4
6 detect_midi_driver - Detects whether the specified MIDI sound device is
7 available. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 int detect_midi_driver(int driver_id);
14
16 Detects whether the specified MIDI sound device is available. This
17 function must be called _before_ install_sound().
18
20 Returns the maximum number of voices that the driver can provide, or
21 zero if the hardware is not present.
22
23 There are two special-case return values that you should watch out for:
24 if this function returns -1 it is a note-stealing driver (eg. DIGMID)
25 that shares voices with the current digital sound driver, and if it
26 returns 0xFFFF it is an external device like an MPU-401 where there is
27 no way to determine how many voices are available.
28
29
31 install_sound(3), reserve_voices(3)
32
33
34
35Allegro version 4.4.3 detect_midi_driver(3)