Can you provide a brief code snippet to show how to convert multiples simultaneously with dmcscriptinglib. I a have a quad-core machine, running windows 7 32bit. I create 4 objects....
Converter dMC1 = new Converter();
Converter dMC2 = new Converter();
Converter dMC3 = new Converter();
Converter dMC4 = new Converter();
Next, I recurse through the files to be converted, an run each conversion on a separate thread.
Task.Factory.StartNew(() => ConvertMusicFile(FromFile, ToFile));
...From ConvertMusicFile() .....................
dMC1.Convert(fileFrom, fileTo, "mp3 (Lame)", "-b=" + m_BitRate, "");
............................
While 4 threads may be running simultaneously, only I file at a time is converted. It appears as though multiple threads cannot access the converter at the same time.
Thank you.
Converter dMC1 = new Converter();
Converter dMC2 = new Converter();
Converter dMC3 = new Converter();
Converter dMC4 = new Converter();
Next, I recurse through the files to be converted, an run each conversion on a separate thread.
Task.Factory.StartNew(() => ConvertMusicFile(FromFile, ToFile));
...From ConvertMusicFile() .....................
dMC1.Convert(fileFrom, fileTo, "mp3 (Lame)", "-b=" + m_BitRate, "");
............................
While 4 threads may be running simultaneously, only I file at a time is converted. It appears as though multiple threads cannot access the converter at the same time.
Thank you.
Comment