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

Add WebAudio backend #902

Closed

Conversation

generic-pers0n
Copy link

This pull request integrates changes from https://github.com/ahilss/portaudio-wasm, which is used in Wavacity, a version of Audacity ported to WebAssembly. I haven't tested this backend to see if it either compiles or works yet.

The motivation behind this pull request is a request by one of Tenacity's former maintainers to integrate patches from Wavacity and making Tenacity capable of targeting WebAssembly. That issue can be found here. I was pretty impressed by Wavacity myself, but since it requires a forked version of PortAudio and wxWidgets, I decided to integrate patches from these forks into their upstream counterparts. I figured I'd start with PortAudio first because it looks like it's the easiest because of the minimal changes involved.

This pull request is marked as a draft at the moment because, as I've stated earlier, I haven't tested anything yet. Notably, I've tried to rework CMake support so I think it fits in with the latest versions of PortAudio. Once I get to testing, I will make any appropriate changes. I will also incorporate any suggestions too. Furthermore, any PortAudio maintainer is allowed to make changes to this PR in case I am busy with something else.

Adam Hilss and others added 2 commits April 28, 2024 20:18
The origina commit was modified to apply better to modern versions of
PortAudio.

(cherry picked from commit 69c5800)

Co-authored-by: Adam Hilss
These are based off the instructions from portaudio-wasm

Co-authored-by: Adam Hilss
@generic-pers0n
Copy link
Author

CC @ahilss.

@JoergAtGithub
Copy link

Where are the differences/benefits to PR #887 by @fwcd ?

@generic-pers0n
Copy link
Author

Ah. I did not see that PR. I'll close this one in favor of #887.

@fwcd
Copy link

fwcd commented Apr 29, 2024

Please feel free to improve the other PR! Haven't had a lot of time to work on that lately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants