Skip to content
Discussion options

You must be logged in to vote

@Genouka Thanks, that clarification changes the solution: for audio only, you can keep a single AvaloniaMainActivity. You do not need SDLActivity, SDLSurface, or the SDL video subsystem.

I built and ran a minimal consumer on an Android API 35 x86_64 emulator with Avalonia 12.1.1, SDL3-CS/SDL3-CS.Android 3.4.14.1, and SDL3-CS.Android.Mixer 3.2.4.9. It stayed in the Avalonia Activity and successfully played a WAV through SDL_mixer.

Add these packages to the Android head project:

<ItemGroup>
  <PackageReference Include="SDL3-CS" Version="3.4.14.1" />
  <PackageReference Include="SDL3-CS.Android" Version="3.4.14.1" />
  <PackageReference Include="SDL3-CS.Android.Mixer" Version="3.2.4.9" />
</I…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Genouka
Comment options

@edwardgushchin
Comment options

Answer selected by Genouka
@Genouka
Comment options

Comment options

You must be logged in to vote
1 reply
@Genouka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants