-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The expiration mechanism for cancellation had an unintended side effect of preventing cancellation if one component of the song completed ahead of time. In other words, if a MIDI file finished playing but there is still audio to play, the song is no longer cancellable. Additionally, it would be possible, in some circumstances, for the completion of one aspect of a song to cancel others unexpectedly. The "expiration" concept was introduced to allow cancellation while still allowing a song to finish normally. This has been replaced with a simple concept of an atomic bool that indicates whether a song component (MIDI, DMX, or audio) has finished and, when used in combination with the new "notify" function, will allow a cancel_handle.wait() call to return without an actual cancellation happening.
- Loading branch information
Showing
11 changed files
with
116 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
target | ||
.vscode | ||
cobertura.xml | ||
lcov.info |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,26 @@ excludes: | |
- .*\.yaml | ||
- .*\.wav | ||
- .*\.mid | ||
- lcov.info | ||
licenses: | ||
- files: any | ||
ident: GPL-3.0 | ||
authors: | ||
- name: Michael Wilson | ||
email: [email protected] | ||
auto_template: true | ||
template: |+ | ||
Copyright (C) [year] [name of author] | ||
This program is free software: you can redistribute it and/or modify it under | ||
the terms of the GNU General Public License as published by the Free Software | ||
Foundation, version 3. | ||
This program is distributed in the hope that it will be useful, but WITHOUT | ||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License along with | ||
this program. If not, see <https://www.gnu.org/licenses/>. | ||
comments: | ||
- columns: 80 | ||
|
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.