pub fn get_sf_global_lock() -> &'static Mutex<()>
Expand description

Lock it before interacting with a few raw libsndfile functions in multithread context.

Affected functions:

  • sf_open(...)
  • sf_error(nullptr)
  • sf_strerror(nullptr)
  • sf_perror(nullptr)
  • sf_error_str(nullptr, ...)