Closed sunnystormy closed 8 years ago
Here are the issues I've found in your lib:
CString
suite from the stdlibALCDevice
, it will always be behind a pointer, so just store the pointer.0
where a pointer is expected. Rust does not support implicit conversions of that kind, so you'll need to ust std::ptr::null()
data
and format
args are reversed for alBufferData
Double checking with the openal guide, the ffi bindings appear to be correct.
Good to know. I'll comb over everything again and make sure the right changes are implemented. I suppose there's still a bit of a learning curve for me switching over to the "Rust" way. Thanks again for all of your help!
I've updated my code to reflect the changes in this repo. If you look at the types of data I'm passing into the ffi, you'll see that it doesn't match.
I glanced at my C++ code to verify that I was passing the right data into the methods, and everything looks right. There may still #need to be some kinks worked out in the ffi before it becomes fully functional.
Look at my audionode-rs repo to see my updates and compare.
Thank you!