title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Problem with Multiple Drives Ripping Scripting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jschimmoeller
    • Jan 2005
    • 5

    Problem with Multiple Drives Ripping Scripting

    I have tried using scripting using VS (C#) to get multiple drives ripping at the same time with no luck. What it does is rips the first thread then goes to the second. Any advice? Sample program code below:

    ------------------ Sample C# code -----------------------------
    #region Using directives

    using System;
    using System.Collections.Generic;
    using System.Text;

    #endregion

    namespace Test
    {

    class Program
    {
    public char cDriveLetter ='0';

    static void Main(string[] args)
    {
    Program p1 = new Program();
    p1.cDriveLetter = 'G';

    Program p2 = new Program();
    p2.cDriveLetter = 'H';
    Console.Out.WriteLine("starting run for drive: " + p1.cDriveLetter);
    new System.Threading.Thread(new System.Threading.ThreadStart(p1.run)).Start();
    Console.Out.WriteLine("starting run for drive: " + p2.cDriveLetter);
    new System.Threading.Thread(new System.Threading.ThreadStart(p2.run)).Start();
    }

    public void run()
    {
    DMCSCRIPTINGLib.Converter dMC = new DMCSCRIPTINGLib.Converter();
    dMC.PreserveTags = 0;
    dMC.DeleteSourceFiles = 0;
    dMC.ConvertToFolder = 1;
    dMC.ToFolder = "d:\\"+this.cDriveLetter;
    dMC.AddFromToFiles(this.cDriveLetter + ":\\Track01.cda", "track01");
    dMC.AddFromToFiles(this.cDriveLetter + ":\\Track02.cda", "track02");
    DMCSCRIPTINGLib.Mp3Settings mp3 = new DMCSCRIPTINGLib.Mp3Settings();
    mp3.Set(128, 44100, 0, 0);

    dMC.GoConversion("Mp3 (Lame)", 1, 1, 1, 1);
    }


    }
    }
    ------------------------------- End of Sample code -------------------

    Thanks
    Jim
  • Spoon
    Administrator
    • Apr 2002
    • 43930

    #2
    Re: Problem with Multiple Drives Ripping Scripting

    You need 2 threads each calling a separate cd drive rip.
    Spoon
    www.dbpoweramp.com

    Comment

    Working...

    ]]>