Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/client/client_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down