ad_open_dev

Function ad_open_dev 

Source
pub unsafe extern "C" fn ad_open_dev(
    device_name: *const c_char,
    samples_per_sec: u32,
) -> *const ad_rec_t
Expand description

Open a specific audio device with a given name and sampling rate.

The device is opened in non-blocking mode and placed in idle state. The return value to be used as the first argument to other recording functions.

ยงSafety

Return pointer to read-only ad_rec_t structure if successful, NULL otherwise.