Skip to content
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

AudioGenerator code prevents compiling if target isn't wasm. #70

Closed
AdjectiveAllison opened this issue Dec 20, 2023 · 2 comments
Closed

Comments

@AdjectiveAllison
Copy link
Contributor

AdjectiveAllison commented Dec 20, 2023

src/audio.zig:17:18: error: root struct of file 'backend' has no member named 'AudioGenerator'
    peer: backend.AudioGenerator,
          ~~~~~~~^~~~~~~~~~~~~~~
src/backend.zig:1:1: note: struct declared here

The title is my current theory as to why it won't compile.
Related to this commit: b927197

Maybe defining a stub for non-wasm backends would be a good move?
Or some conditional to not even import audio on non initialized backends?

@AdjectiveAllison
Copy link
Contributor Author

Maybe this is related to stage2 regressions ziglang/zig#12325?

@zenith391 mentions it here: #58

I'm getting something similar here when doing zig build serve with the capy-template build file:

src/components/TextArea.zig:13:19: error: root struct of file 'backend' has no member named 'TextArea'
    peer: ?backend.TextArea = null,

@zenith391
Copy link
Member

Fixed by 9a4e757

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants