forked from szechyjs/dsd
-
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.
* cmake: fix portaudio linking issue (szechyjs#103) * Fixing multiple definitions of exitflag (szechyjs#104) (szechyjs#105) Thanks to N0YKG for the fix! I am just making the PR :) * Create codeql-analysis.yml * Install deps * Initialize last_dibit variable (szechyjs#119) * Refactored dsd_mbe::playMbeFile to properly handle eof and closing the currently read file, which was causing segfaults for large numbers of mbe files being read in. Extracted reader function calls to typedefed pointer, s.t. since the file type only needs to be read per file, it could be set to a generic function pointer thus cleaning up the read loop. Fixed end conditions for both the while and for loops, s.t. they break on exit flag, and their respective conditions. Removed redundant cleanup function call since the caller calls it on return of the play function anyway. * Added default case, and fixed while loop condition. * Added a bunch of file helper functions to handle error checking. * Added file open helper function. Refactored file error handler to be extensible beyond EOF being defined as -1 in glibc. Changed expected EOF in playMbeFile to be handled specially (i.e. not sent to error handler) because it's more likely than not to be expected, and in any case, we can just trying playing the next file. * Made print in play function respect the quiet flag * reverted CMakeLists change * reverted CMakeLists change * reverted CMakeLists change, I should've just used sed --------- Co-authored-by: ra1nb0w <[email protected]> Co-authored-by: Yinette Hodge <[email protected]> Co-authored-by: Jared Szechy <[email protected]> Co-authored-by: Clayton Smith <[email protected]>
- Loading branch information
1 parent
59423fa
commit b972ed1
Showing
5 changed files
with
165 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,8 @@ dsd | |
*.dylib | ||
build | ||
.DS_Store | ||
.idea | ||
cmake-build* | ||
*.swp | ||
|
||
build/ |
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