get_sound_input_cap_parm(3alleg4)

get_sound_input_cap_parm3alleg4

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

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.