We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
u32
Client.sample_rate()
1 parent cdad744 commit 0ea7f5fCopy full SHA for 0ea7f5f
1 file changed
src/client/client_impl.rs
@@ -100,9 +100,9 @@ impl Client {
100
101
/// The sample rate of the JACK system, as set by the user when jackd was
102
/// started.
103
- pub fn sample_rate(&self) -> usize {
+ pub fn sample_rate(&self) -> u32 {
104
let srate = unsafe { j::jack_get_sample_rate(self.raw()) };
105
- srate as usize
+ srate as u32
106
}
107
108
/// The current CPU load estimated by JACK. It is on a scale of `0.0` to `100.0`.
0 commit comments