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

It doesn't seem to be possible to build with MA_NO_DEVICE_IO #652

Closed
fuelsoft opened this issue Mar 26, 2023 · 3 comments
Closed

It doesn't seem to be possible to build with MA_NO_DEVICE_IO #652

fuelsoft opened this issue Mar 26, 2023 · 3 comments
Labels

Comments

@fuelsoft
Copy link

Hi,

After poking around for an hour or two, I can't get the split header/source version to build with MA_NO_DEVICE_IO defined so that it can be used with SDL. That's still a supported configuration, right?

I can build simple_playback.c just fine.

I have no issue compiling miniaudio.c unmodified (cc miniaudio.c -c -o miniaudio.o). However, when defining MA_NO_DEVICE_IO when building miniaudio (either with -D or in a source file) it doesn't compile (see attached log, I didn't want to clog up this report, it's long).

My environment is Clang 15.0.7 from MSYS on Windows.

out.txt

mackron added a commit that referenced this issue Mar 26, 2023
@mackron
Copy link
Owner

mackron commented Mar 26, 2023

Thanks. Yes this is definitely still a supported configuration. Was an oversight on my part. I've pushed a potential fix to the dev branch. Are you able to give that a try?

@mackron
Copy link
Owner

mackron commented Mar 26, 2023

Quick clarification. This fix is in the non-split version. I only update the split version when I do a new release.

@fuelsoft
Copy link
Author

You work fast!

That has fixed it and the SDL example now builds. Thanks!

@mackron mackron added the bug label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants