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 Sox backend refinements
- Pass driver type to SoxSource/SoxSink ctor. - Check or populate SampleSpec in ctor depending on driver type (file or device). - In SoxSink, populate with defaults all fields (format, channels, rate) for files, and all except rate for devices. (If we don't popolate rate for device, sox will pick a rate natively supported by device, which is good. But if we don't populate channels, sox will pick mono, which is a bad default. So if channels are not specified, we select stereo). - In SoxSource, forbid non-empty SampleSpec for files. For devices, populate all fields except rate. - Remove panic.
- Loading branch information
Showing
5 changed files
with
111 additions
and
78 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
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