Closed Larpoux closed 1 month ago
Hmm, looks like that mod is conditionally compiled -> https://github.com/RustAudio/cpal/blob/0da7ae1d426d471cf352550d0048bac91c8bac38/src/host/mod.rs#L10-L11, and we currently do not support such conditional compilation yet.
Close since inactivity, but feel free to reopen if you have any questions!
@Larpoux Hi my friend, btw how is everything going on?
Hi @fzyzcjy , Actually I am very busy working on Flutter Sound maintenance. Also I’m investigating if I can use lab_sound_flutter. This is pure c++ and much easier for me to work on because I master c++. But I haven’t give up with web-audio-api-rs . I just realize now that I can’t hope working on a rust project without learning first the language. I will do this.
‘Also, it is necessary to write a wrapper with dart, and can’t offer directly access to the rust or c++ library. This wrapper will have an api 100% compatible with the api offered by Google for web app. Perhaps it is possible to have a wrapper common for web-audio-api-rs and lab-audio.
Note : Flutter Rust bridge is much more powerful than the generator for C. The C generator is just C, not C++, so necessary to write an other interface in c.
All this to tell you that I have much work to do, and nothing will be published before next year. I really need to learn rust.
I see. No worries and take your time!
Btw, I wonder what is missing for a 100% web-audio-api up to now - I guess there is https://github.com/fzyzcjy/flutter_rust_bridge/issues/2193; is there anything else? (I can keep them on my list, s.t. for example later maybe I can have a check on them)
P.S. About learning rust: Besides the rust books and exercises, the Rust community is very good (https://users.rust-lang.org/). When I have Rust questions, often someone there reply quickly. So I guess asking there when learning Rust if having a question may also be helpful.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.
Describe the bug
I try to build a dart interface to the cpal library When I try to compile my very simple app I get the following error, both on iOS and Android :
Steps to reproduce
Here is the
cpal
sources :Logs
Expected behavior
No response
Generated binding code
No response
OS
No response
Version of
flutter_rust_bridge_codegen
No response
Flutter info
No response
Version of
clang++
No response
Additional context
No response