Struct cubeb_backend::Ops [] [src]

#[repr(C)]
pub struct Ops { pub init: Option<unsafe extern "C" fn(_: *mut *mut cubeb, _: *const c_char) -> c_int>, pub get_backend_id: Option<unsafe extern "C" fn(_: *mut cubeb) -> *const c_char>, pub get_max_channel_count: Option<unsafe extern "C" fn(_: *mut cubeb, _: *mut c_uint) -> c_int>, pub get_min_latency: Option<unsafe extern "C" fn(_: *mut cubeb, _: cubeb_stream_params, _: *mut c_uint) -> c_int>, pub get_preferred_sample_rate: Option<unsafe extern "C" fn(_: *mut cubeb, _: *mut u32) -> c_int>, pub get_preferred_channel_layout: Option<unsafe extern "C" fn(_: *mut cubeb, _: *mut cubeb_channel_layout) -> c_int>, pub enumerate_devices: Option<unsafe extern "C" fn(_: *mut cubeb, _: cubeb_device_type, _: *mut cubeb_device_collection) -> c_int>, pub device_collection_destroy: Option<unsafe extern "C" fn(_: *mut cubeb, _: *mut cubeb_device_collection) -> c_int>, pub destroy: Option<unsafe extern "C" fn(_: *mut cubeb)>, pub stream_init: Option<unsafe extern "C" fn(_: *mut cubeb, _: *mut *mut cubeb_stream, _: *const c_char, _: cubeb_devid, _: *mut cubeb_stream_params, _: cubeb_devid, _: *mut cubeb_stream_params, _: c_uint, _: cubeb_data_callback, _: cubeb_state_callback, _: *mut c_void) -> c_int>, pub stream_destroy: Option<unsafe extern "C" fn(_: *mut cubeb_stream)>, pub stream_start: Option<unsafe extern "C" fn(_: *mut cubeb_stream) -> c_int>, pub stream_stop: Option<unsafe extern "C" fn(_: *mut cubeb_stream) -> c_int>, pub stream_reset_default_device: Option<unsafe extern "C" fn(_: *mut cubeb_stream) -> c_int>, pub stream_get_position: Option<unsafe extern "C" fn(_: *mut cubeb_stream, _: *mut u64) -> c_int>, pub stream_get_latency: Option<unsafe extern "C" fn(_: *mut cubeb_stream, _: *mut u32) -> c_int>, pub stream_set_volume: Option<unsafe extern "C" fn(_: *mut cubeb_stream, _: c_float) -> c_int>, pub stream_set_panning: Option<unsafe extern "C" fn(_: *mut cubeb_stream, _: c_float) -> c_int>, pub stream_get_current_device: Option<unsafe extern "C" fn(_: *mut cubeb_stream, _: *mut *mut cubeb_device) -> c_int>, pub stream_device_destroy: Option<unsafe extern "C" fn(_: *mut cubeb_stream, _: *mut cubeb_device) -> c_int>, pub stream_register_device_changed_callback: Option<unsafe extern "C" fn(_: *mut cubeb_stream, _: cubeb_device_changed_callback) -> c_int>, pub register_device_collection_changed: Option<unsafe extern "C" fn(_: *mut cubeb, _: cubeb_device_type, _: cubeb_device_collection_changed_callback, _: *mut c_void) -> c_int>, }

Fields