---
name: "CL_SoundCard"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_SoundCard"
---

# CL\_SoundCard(3)

Soundcard interface in ClanLib.

## NAME

CL\_SoundCard - Soundcard interface in ClanLib.

## DESCRIPTION

CL\_SoundCard is the interface to a soundcard. It is used to control the main mixer volume and other global settings. It also provides access to the microphone and line in as streamed soundproviders.

## CLASS MEMBERS

- std::string **name**

  - int **card\_no**

  - virtual **~CL\_SoundCard**()

  - virtual CL\_StreamSoundProvider \***get\_microphone**()

  - virtual CL\_StreamSoundProvider \***get\_line\_in**()

  - virtual void **stop\_all**()

  - virtual void **set\_global\_volume**(

  ```
  int volume)
  ```

- virtual void **set\_global\_pan**(

  ```
  int pan)
  ```

## MEMBERS WITH DESCRIPTIONS

- std::string **name**

  ```
  Description:
  ```

  Name of the soundcard.

- int **card\_no**

  ```
  Description:
  ```

  Card number.

- virtual **~CL\_SoundCard**()

  ```
  Description:
  ```

- virtual CL\_StreamSoundProvider \***get\_microphone**()

  ```
  Description:
  ```

  Returns the streamed soundprovider representing the microphone.

- virtual CL\_StreamSoundProvider \***get\_line\_in**()

  ```
  Description:
  ```

  Returns the streamed soundprovider representing the line in.

- virtual void **stop\_all**()

  ```
  Description:
  ```

  Stops all sample playbacks on the soundcard.

- virtual void **set\_global\_volume**(

  ```
  int volume)
  ```

  ```
  Description:
  ```

  Sets the main/mixer volume on the soundcard.

- virtual void **set\_global\_pan**(

  ```
  int pan)
  ```

  ```
  Description:
  ```

  Sets the main panning position on the soundcard.

## SEE ALSO

All ClanLib API classes can be found in **clanlib (3)**.

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at **http://somewhere.in.the.world.org**).

See **clanlib (3)** to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.
