snd_ctl_open

Name

snd_ctl_open -- open a control device

Synopsis

intsnd_ctl_open(snd_ctl_t **handle, intcard);

Description

Creates a new handle and opens a connection to the kernel sound control interface for sound card number card (0-N). Function also checks if protocol is compatible to prevent use of old programs with a new kernel API. Function returns zero if successful otherwise it returns an error code.