-
-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededin-progressThis issue is actively being worked on; development is currently in progress.This issue is actively being worked on; development is currently in progress.
Description
Hello,
first of all: Thanks for this great library.
Today I tried to use it with Linux and it worked flawlessly. Unfortunately when using an AvaloniaUI Cross Platform GUI Application and trying to start the WASM / Browser build, there is an error:
Unsupported Operating System: Browser
Since this is a wrapper for miniaudio and miniaudio seems to support WASM builds, I would like to ask, if you plan to integrate support for WASM or if I missed something
miniaudio works on all the major desktop and mobile platforms, including Windows, macOS, Linux, BSD, iOS, Android and Web (via Emscripten).
Examples:
- C# Project: https://github.com/sandreas/eduart
- Short 1s Audio: animal-voice.zip
- Online Base64 Converter: https://base64.guru/converter/encode/file
I basically ran all this using the AvaloniaUI xplat example and the SoundFlow example from the readme using a MemoryStream to rule out local file accessing errors:
using var audioEngine = new MiniAudioEngine(44100, Capability.Playback);
//
var audioBytes = Convert.FromBase64(".....");
var audioStream = new MemoryStream(audioBytes);
// Create a SoundPlayer and load an audio file
var player = new SoundPlayer(new StreamDataProvider(audioStream));
// Add the player to the master mixer
Mixer.Master.AddComponent(player);
// Start playback
player.Play();tlecomte and Axwabo
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededin-progressThis issue is actively being worked on; development is currently in progress.This issue is actively being worked on; development is currently in progress.
Projects
Status
In progress