Skip to content

Conversation

@Shatur
Copy link
Contributor

@Shatur Shatur commented Dec 23, 2025

Objective

  • It's a bit unexpected to require bevy_audio even when it's not used with default_platform, which enables android_shared_stdcxx.

Solution

  • Treat this feature similar to std. It just enables android_shared_stdcxx on cpal inside bevy_audio.

It's a bit unexpected to require `bevy_audio` even when it's not used.
I'd treat this feature similar to `std`. It just enables
`android_shared_stdcxx` on `cpal` inside `bevy_audio`.
@mockersf mockersf added the O-Android Specific to the Android mobile operating system label Dec 24, 2025
@mockersf
Copy link
Member

mockersf commented Dec 24, 2025

I don't remember the impact at the moment, but a shared stdcxx was needed for some things on android and we were relying on cpal to do it for us

@beicause
Copy link
Contributor

I think this makes sense. I can build for Android successfully when using other audio crate without relying on bevy audio and shared stdcxx.

And after #20323, bevy audio no longer needs it anyway.

@mockersf
Copy link
Member

I can build for Android successfully when using other audio crate without relying on bevy audio and shared stdcxx.

As it's a shared library, I think testing needs to be actually playing sound on Android, not just building

And after #20323, bevy audio no longer needs it anyway.

Nice!

@Shatur
Copy link
Contributor Author

Shatur commented Dec 24, 2025

As it's a shared library, I think testing needs to be actually playing sound on Android, not just building

But the whole point was to build for Android without requiring audio. And if it's enabled - enable android_shared_stdcxx on cpal.

@mockersf
Copy link
Member

Yup, that was a response to the other comment.

#20323 would do this and more, and merging this first would conflict, so I would prefer to wait for it

@Shatur
Copy link
Contributor Author

Shatur commented Dec 28, 2025

Ah, got it!

Makes sense, but do you think #20323 could go into 0.18?

@alice-i-cecile alice-i-cecile added A-Audio Sounds playback and modification S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Dec 29, 2025
@alice-i-cecile alice-i-cecile added the C-Code-Quality A section of code that is hard to understand or change label Dec 29, 2025
@mockersf
Copy link
Member

do you think #20323 could go into 0.18?

Not likely, #20323 is not ready and waiting for other updates

@NiklasEi
Copy link
Member

Not likely, #20323 is not ready and waiting for other updates

In that case can we merge this PR for 0.18?
If we want to encourage people to use the new feature collections and at the same time try out the potential bevy_audio v2 with bevy_seedling, this is a paper-cut. Imo it's just wrong that not adding the audio feature collection is not enough to replace bevy_audio.

@Shatur
Copy link
Contributor Author

Shatur commented Dec 30, 2025

And it's a single character, pretty sure it will be easy to resolve conflicts for #20323 🙂

@mockersf
Copy link
Member

In that case can we merge this PR for 0.18?

It is technically a breaking change... but it's probably OK

@Shatur Shatur added this to the 0.18 milestone Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Audio Sounds playback and modification C-Code-Quality A section of code that is hard to understand or change O-Android Specific to the Android mobile operating system S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants