private void GetAsioDrivers()
 {
     Log.Write(LogLevel.Info, "Getting the ASIO drivers.....");
     using (var asioObject = new AsioAudioService(""))
     {
         var asioDrivers = asioObject.GetDriverNames();
         AsioCB.Items.Clear();
         foreach (var obj in asioDrivers)
         {
             AsioCB.Items.Add(obj);
         }
     }
 }
Exemple #2
0
        public static IAudioService GetAudioObject(int objectType, string asioDriver, bool exclusiveMode)
        {
            IAudioService audiObject = null;

            if (objectType == 0)
            {
                audiObject = new AudioService();
            }
            else if (objectType == 1)
            {
                audiObject = new WasapiAudioService(exclusiveMode);
            }
            else if (objectType == 2)
            {
                audiObject = new AsioAudioService(asioDriver);
            }

            return(audiObject);
        }