"examples/pytorch/vscode:/vscode.git/clone" did not exist on "79b057f0cf493995c133c1ff8fe2fa90f802ed42"
Update the way to access libsox global config (#1755)
* Update the way to access libsox global config Preparation for splitting `libtorchaudio` and `_torchaudio`. When two libraries are compiled separately, and each code does `#include <sox.h>` independently, two copies of libsox's static global variables (`sox_globals_t`) are created. Our code should be referring to the same instance. To achieve this, `_torchaudio` should be accessing the global variable defined in `libtorchaudio` via the custom utility functions, and it should not directly use `sox_get_globals`.
Showing
Please register or sign in to comment