From e5e44a4e829b098e3172b07523ee371f8dd6afc0 Mon Sep 17 00:00:00 2001 From: Worik <5387413+worikgh@users.noreply.github.com> Date: Fri, 5 Dec 2025 09:20:16 +1300 Subject: [PATCH] Use `u32` for ` Client.sample_rate()` --- src/client/client_impl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/client_impl.rs b/src/client/client_impl.rs index 1b0d1fbce..af9ca370c 100644 --- a/src/client/client_impl.rs +++ b/src/client/client_impl.rs @@ -100,9 +100,9 @@ impl Client { /// The sample rate of the JACK system, as set by the user when jackd was /// started. - pub fn sample_rate(&self) -> usize { + pub fn sample_rate(&self) -> u32 { let srate = unsafe { j::jack_get_sample_rate(self.raw()) }; - srate as usize + srate as u32 } /// The current CPU load estimated by JACK. It is on a scale of `0.0` to `100.0`.