Closed uklotzde closed 3 years ago
The type of the sample rate depends on the range of possible values, but neither on the platform nor the CPU architecture. The return type usize for SampleRate::hz() is not a good match. Using u32 with a known size would be a better choice.
usize
SampleRate::hz()
u32
Seems reasonable.
Done
The type of the sample rate depends on the range of possible values, but neither on the platform nor the CPU architecture. The return type
usize
forSampleRate::hz()
is not a good match. Usingu32
with a known size would be a better choice.