New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
32bit support #28
Comments
I think I figured it out digging into quad_alsa_sys..
And now everything is happy |
Solved with #29 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to use this in a Raspberry PI 3 with a stock raspbian 32bit kernel/os.
consts::PCM_BUFFER_SIZE is set as a u64
This is causing issues with calls to quad_alsa_sys::snd_pcm_hw_params_set_buffer_size because it's also platform dependent, and will be built to expect an u32 or u64.
Also since quad_alsa_sys::snd_pcm_writei will return the frames written as a u32, this line fails:
This later I can certainly do the i64 up convert as suggested, but for the first issue, with the snd_pcm_hw_params_set_buffer_size what is the best way to handle this?
I am still pretty new to rust. I make it a usize, but quad_alsa_sys is making this a u32 or u64 at compile time probably from the underlying C library. Is this something to be fixed in that library (quad_alsa_sys) to change the function to use usize?
If I force the const to u32 of course everything works fine, but that's now hard coding it to only work on 32bit systems.
The text was updated successfully, but these errors were encountered: