forked from roc-streaming/roc-toolkit
-
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.
roc-streaminggh-246 Sndfile backend improvements
- Use SampleSpec::use_defaults() for simpler code. - Simplify how SampleSpec is populated. - In SndfileSink, don't call seek, because some formats are not seekable and will fail. - In SndfileSource, check if file is seekable. If yes, implement restart() using seek, otherwise implement it by reopening file. - In SndfileSource, use StringBuffer for path, because provided const char* may point to a temporary string. - If close fails, print error instead of panic.
- Loading branch information
Showing
3 changed files
with
47 additions
and
106 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