[TwoLAME-discuss] twolame encoder not thread safe
MPEG-Audio Layer 2 (MP2) encoder
Status: Beta
Brought to you by:
nhumfrey
From: Thomas W. <wol...@ms...> - 2012-10-08 07:54:11
|
Hi, The first bullet point in the twolame encoder feature list is "Fully thread-safe". Unfortunately that's a false statement. To prove it I wrote a simple Windows Forms Application that encodes 8 *.wav files via a thread pool. I could however pinpoint the issue to redirecting the error output. The bug occurs if there's no logging but doesn't if there is. If you want to have a look yourself download the application's source code from here: http://www.tomwolle.de/c++/src/twolame_encoder_mt_test.rar Simply compile the x64 Debug configuration and start the process via the "Go" button. The "LogOutput" checkbox allows for quickly switching between the 2 debugging states. The resulting *.mp2 files will be located at the source file's location in the "source" folder. If the bug occurs corresponding *.mp2 files will be missing and a "twolame.exe.stackdump" file will get created under the "...\bin\x64\Debug" directory. Danke, Thomas |