Thread safety considerations
masterThe soundfile module follows the thread safety guarantees of libsndfile.
Safe:
- Concurrently opening and reading the same file using unique per-thread handles.
- Using different files in different threads.
Unsafe:
- Sharing a single reader or writer handle between multiple threads.
- Concurrently writing to the same file from different threads.