Lurker News
I originally developed a WASM port of wxWidgets for https://dj.app/. When it came time to open source wxWidgets-wasm, I decided to port another complex app as a test case, and Audacity seemed like the obvious choice. In the process, I also needed to write a new host API for PortAudio for playback and recording in the browser.

https://github.com/ahilss/wxWidgets-wasm
https://github.com/ahilss/portaudio-wasm
https://github.com/ahilss/wavvy

Comments (111) 39 threads

Earlier comments
tgv#
Wow. How much work was the porting of audicity? It seems there's no commit history for wavvy.
miduil1 reply#
OMG, finally a audacity version that won't crash my Wayland window manager. Unfortunately the recorded audio is really weird. Basically it tunes down the audio once I'm speaking, maybe some weird autogain racecondition between PulseAudio/Pipewire and Firefox?
handelaar1 reply#
Sounds a lot more like playing 44.1kHz audio through a 48kHz device
miduil#
You are right, that might be it. I've tried setting all the preferences I could find to 44.1kHz though it's still the same.
chaosprint#
Very impressive work! I tried to play some loops and add some effects. They all went well. Did you manually handle the audio or is it wrapped in the portaudio-wasm?

One thing I can learn from your work is to how the canvas is rendered. For my project Glicol (https://glicol.org) I use the Web Audio Analyser Node for visualisation but I am considering to use SAB to send even non-audio channels and render the canvas in real-time. It would be great to explore the process if you can write more on your GH repo.

alkonaut2 replies#
What other options exist for "complex native-ish browser interfaces" in this style? E.g. if you wanted to develop a new app which is a traditional desktop GUI app with tons of menus and buttons that need to be custom rendered (so wasm/canvases presumably, rather than html), what options exist aside from this effort with wxWidgets?

For example, say you wanted to make a 3D editor/CAD program or full-featured DAW from scratch - what would you use?

chaosprint#
I will use rust egui
badsectoracula#
Note that Lazarus isn't (yet) able to do web-based GUIs. Free Pascal only just added wasm support (not in a release yet, but it is part of the main branch), so all is needed (which TBH is kind of a big "all" :-P) is someone to make an LCL backend for it, so it might happen at some point.

Load more comments