Skip to content

Commit

Permalink
temporarily don't check for invalid params
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGhillie committed Sep 6, 2024
1 parent bc7f78a commit fd844e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/phonon-fmod/src/callbacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ pub(crate) unsafe extern "C" fn set_int_callback(
Params::ApplyDistanceAttenuation => {
(*effect).apply_distance_attenuation = value.into();
}
_ => return FMOD_ERR_INVALID_PARAM,
_ => return FMOD_OK, // todo should be FMOD_ERR_INVALID_PARAM,
}
} else {
return FMOD_OK;
Expand All @@ -591,7 +591,7 @@ pub(crate) unsafe extern "C" fn get_int_callback(
Params::ApplyDistanceAttenuation => {
*value = apply_da;
}
_ => return FMOD_ERR_INVALID_PARAM,
_ => return FMOD_OK, // todo should be FMOD_ERR_INVALID_PARAM
}
} else {
return FMOD_OK;
Expand Down

0 comments on commit fd844e6

Please sign in to comment.