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

Fix various bugs when using JACK #4005

Merged
merged 3 commits into from
Dec 3, 2017
Merged

Conversation

PhysSong
Copy link
Member

@PhysSong PhysSong commented Nov 23, 2017

Change the way AudioJack handles processing stop. Fixes #3397, fixes #3396, fixes #3207.

Change the way AudioJack handles processing stop
@PhysSong PhysSong changed the title Fix JACK crashes and freezings Fix crashes and freezings when using JACK Nov 24, 2017
@PhysSong
Copy link
Member Author

@PaulBatchelor Could you test this and let me know if the bug is fixed?

@PhysSong
Copy link
Member Author

PhysSong commented Nov 26, 2017

I confirmed this fixes #3396(JACK part of #2845, too) just now. I guess this will fix #2934, too. @Umcaruje Can you test this?

Edit: Partial fix for #2934 is confirmed.

@PhysSong PhysSong changed the title Fix crashes and freezings when using JACK Fix various bugs when using JACK Nov 26, 2017
@PhysSong
Copy link
Member Author

PhysSong commented Nov 28, 2017

I'm afraid it's not thread safe. SDL provides SDL_LockAudio function for thread-safety, but I can't find proper JACK equivalent. Maybe adding a custom lock is the best way?

Edit: added a mutex via 3f22073.

@PhysSong
Copy link
Member Author

PhysSong commented Dec 1, 2017

Is it okay to merge this?

@PhysSong PhysSong merged commit dd4a73e into LMMS:stable-1.2 Dec 3, 2017
@PhysSong PhysSong deleted the jackbug branch December 3, 2017 02:27
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
* Fix crash on closing
* Fix audio rendering artifacts
* Make LMMS work properly after rendering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant