get_sound_input_cap_bits(3alleg4)

get_sound_input_cap_bits3alleg4

Checks which audio input sample formats are supported. allegro game programming library.

Usage

int get_sound_input_cap_bits();

Overview

Checks which sample formats are supported by the current audio input driver, returning one of the bitfield values:

   0 = audio input not supported
   8 = eight bit audio input is supported
   16 = sixteen bit audio input is supported
   24 = both eight and sixteen bit audio input are supported

Example:

   cap = get_sound_input_cap_bits();
   if (cap == 0) {
      /* Ugh, no audio input supported? */
   } else {
      if (cap & 8) {
         /* We have eight bit audio input. */
      }
      if (cap & 16) {
         /* We have sixteen bit audio input. */
      }
   }

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.