get_sound_input_cap_rate(3alleg4) linux man page | unix.com

Man Page: get_sound_input_cap_rate

Operating Environment: linux

Section: 3alleg4

get_sound_input_cap_rate(3alleg4)				  Allegro manual				 get_sound_input_cap_rate(3alleg4)

NAME
get_sound_input_cap_rate - Returns the maximum sample frequency for recording. 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 specified format, or zero if these settings are not supported. The bits parameter 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(3alleg4), get_sound_input_cap_parm(3alleg4), get_sound_input_cap_bits(3alleg4), get_sound_input_cap_stereo(3alleg4) Allegro version 4.4.2 get_sound_input_cap_rate(3alleg4)
Related Man Pages
load_sample(3alleg4) - debian
load_sample(3alleg4) - suse
load_sample(3alleg4) - mojave
load_sample(3alleg4) - netbsd
start_sound_input(3alleg4) - linux
Similar Topics in the Unix Linux Community
Rules for Homework &amp; Coursework Questions Forum
Scripts without shebang
Status of UNIX.COM Forum Transformation
Don Cragun crossing 4500 thanks went unnoticed for more than a week - late congratulations!
UNIX.com End of Year (EOY) Report (2019)