Function sphinxad_sys::ad_open_dev [] [src]

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

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.