get_sound_input_cap_parm(3alleg)

get_sound_input_cap_parm3alleg

Detects if the specified recording parameters are supported. allegro game programming library.

Usage

#include <allegro.h>

int get_sound_input_cap_parm(int rate, int bits, int stereo);

Overview

Checks whether the specified recording frequency, number of bits, and mono/stereo mode are supported (and how) by the current audio driver.

Return value

The function returns one of the following possible values:

   0  = It is impossible to record in this format.
   1  = Recording is possible, but audio output
        will be suspended.
   2  = Recording is possible at the same time as
        playing other sounds (full duplex sound card).
   -n = Sampling rate not supported, but rate 'n'
        would work instead.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.