Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
get_sound_input_cap_rate(3)	 Allegro manual      get_sound_input_cap_rate(3)

NAME
     get_sound_input_cap_rate - Returns the maximum sample frequency for record-
     ing. Allegro game programming library.

SYNOPSIS
     #include <allegro.h>

     int get_sound_input_cap_rate(int bits, int stereo);

DESCRIPTION
     Returns  the  maximum possible sample frequency for recording in the speci-
     fied format, or zero if these settings are not supported. The bits  parame-
     ter  is the number of bits of the audio, and stereo is a boolean parameter.
     Pass zero for mono, non-zero for stereo input. Example:

	int max_freq;
	...
	/* What frequency can we record 8 bits mono at? */
	max_freq = get_sound_input_cap_rate(8, 0);
	if (max_freq > 22000) {
	   /* Ok, 22KHz and above is good enough. */
	}

SEE ALSO
     start_sound_input(3),	get_sound_input_cap_parm(3),	   get_sound_in-
     put_cap_bits(3), get_sound_input_cap_stereo(3)

Allegro 			  version 4.4.3      get_sound_input_cap_rate(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=get_sound_input_cap_rate&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help