Support devices in roc-copy #655
Labels
enhancement
help wanted
An important and awaited task but we have no human resources for it yet
sound io
Audio I/O
Projects
Problem
roc-copy tool copies samples from input to output, performing necessary conversions if necessary.
Currently roc-copy requires that both input and output should be files, and fails otherwise. It does it by checking has_clock() value, which is true for devices and false for files.
Solution
We can allow one of the input or output to be device (but not both, because roc-copy doesn't have clock drift compensation).
Code: https://github.com/roc-streaming/roc-toolkit/blob/develop/src/tools/roc_copy/main.cpp
Testing
Ensure that "copying" from microphone to file, and from file to speakers works fine.
E.g.:
Docs
Manual page should be updated: https://github.com/roc-streaming/roc-toolkit/blob/develop/docs/sphinx/manuals/roc_copy.rst
The text was updated successfully, but these errors were encountered: