Skip to content

Instantly share code, notes, and snippets.

@saivert
Created June 13, 2023 18:50
Show Gist options
  • Save saivert/3dab3d98687b9cc0904720424cdea43b to your computer and use it in GitHub Desktop.
Save saivert/3dab3d98687b9cc0904720424cdea43b to your computer and use it in GitHub Desktop.
pub fn set_param(&self, id: spa::param::ParamType, flags: u32, param: &[u8]) {
unsafe {
spa_interface_call_method!(
self.proxy.as_ptr(),
pw_sys::pw_node_methods,
set_param,
id.as_raw(),
flags,
param.as_ptr() as *const spa::sys::spa_pod
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment