1get_sound_input_cap_bits(3)     Allegro manual     get_sound_input_cap_bits(3)
2
3
4

NAME

6       get_sound_input_cap_bits  - Checks which audio input sample formats are
7       supported. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int get_sound_input_cap_bits();
14

DESCRIPTION

16       Checks which sample formats are supported by the  current  audio  input
17       driver, returning one of the bitfield values:
18
19          0 = audio input not supported
20          8 = eight bit audio input is supported
21          16 = sixteen bit audio input is supported
22          24 = both eight and sixteen bit audio input are supported
23       Example:
24
25          cap = get_sound_input_cap_bits();
26          if (cap == 0) {
27             /* Ugh, no audio input supported? */
28          } else {
29             if (cap & 8) {
30                /* We have eight bit audio input. */
31             }
32             if (cap & 16) {
33                /* We have sixteen bit audio input. */
34             }
35          }
36
37

SEE ALSO

39       start_sound_input(3),                      get_sound_input_cap_parm(3),
40       get_sound_input_cap_rate(3), get_sound_input_cap_stereo(3)
41
42
43
44Allegro                          version 4.2.3     get_sound_input_cap_bits(3)
Impressum