forked from libpd/libpd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing all memory allocation from audio thread
This change introduces a new and different way of handling callbacks. It removes much work from the audio thread, including the conversion from plain C datatypes to Objective-C datatypes. Instead, the audio thread writes the parameters of callbacks to a lockless circular buffer, and an intermediate converter thread reads the circular buffer, converts to Objective-C datatypes, and puts the callbacks on the main queue. WARNING: This branch is very experimental. It may disappear without warning or blow up in your face. Use at your own risk.
- Loading branch information
1 parent
6443fe8
commit 596c8c3
Showing
7 changed files
with
674 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.