GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GET_SOUND_INPUT_CAP_RATE (3)

NAME

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

CONTENTS

Synopsis
Description
See Also

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(3), get_sound_input_cap_parm(3), get_sound_input_cap_bits(3), get_sound_input_cap_stereo(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro GET_SOUND_INPUT_CAP_RATE (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.