Skip to content

Commit 0ea7f5f

Browse files
authored
Use u32 for Client.sample_rate() (#225)
1 parent cdad744 commit 0ea7f5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/client/client_impl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ impl Client {
100100

101101
/// The sample rate of the JACK system, as set by the user when jackd was
102102
/// started.
103-
pub fn sample_rate(&self) -> usize {
103+
pub fn sample_rate(&self) -> u32 {
104104
let srate = unsafe { j::jack_get_sample_rate(self.raw()) };
105-
srate as usize
105+
srate as u32
106106
}
107107

108108
/// The current CPU load estimated by JACK. It is on a scale of `0.0` to `100.0`.

0 commit comments

Comments
 (0)