If I’m going to convert multiple WAV files simultaneously, there’re different ways to do it: multi-process and multi-thread.
The questions is:
-
Is DS native client thread-safe? E.g. Can I initialize (with LM) once and then create multiple threads to decode multiple streams? Is there anything I should lock among threads?
-
If it’s not thread-safe, can I initialize once and then fork multiple processes to decode multiple streams?
If both answers are negative, every new forked process has to perform the redudant initialization before decoding a new stream. Thanks!