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

NAME

6       get_sound_input_cap_rate  -  Returns  the  maximum sample frequency for
7       recording. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int get_sound_input_cap_rate(int bits, int stereo);
14

DESCRIPTION

16       Returns the maximum possible sample  frequency  for  recording  in  the
17       specified format, or zero if these settings are not supported. The bits
18       parameter is the number of bits of the audio, and stereo is  a  boolean
19       parameter. Pass zero for mono, non-zero for stereo input. Example:
20
21          int max_freq;
22          ...
23          /* What frequency can we record 8 bits mono at? */
24          max_freq = get_sound_input_cap_rate(8, 0);
25          if (max_freq > 22000) {
26             /* Ok, 22KHz and above is good enough. */
27          }
28
29

SEE ALSO

31       start_sound_input(3),                      get_sound_input_cap_parm(3),
32       get_sound_input_cap_bits(3), get_sound_input_cap_stereo(3)
33
34
35
36Allegro                          version 4.4.2     get_sound_input_cap_rate(3)
Impressum