rust-jack icon indicating copy to clipboard operation
rust-jack copied to clipboard

Client.sample_rate() returns wrong type

Open worikgh opened this issue 2 months ago • 1 comments

Client.sample_rate() returns a usize

usize is for memory addresses. Indexing arrays and the like. It is related to the platform's pointer size, so could be 32 or 64 bits (or something else?)

The correct type would be u32 which is 32 bits.

worikgh avatar Dec 02 '25 20:12 worikgh

This makes sense. Feel free to send a PR or I can do one over the weekend.

wmedrano avatar Dec 02 '25 21:12 wmedrano