Exemplo n.º 1
0
        public AudioEngineNode()
        {
            FEngine = AudioService.Engine;

            var drivers = AsioOut.GetDriverNames();

            if (drivers.Length > 0)
            {
                EnumManager.UpdateEnum("NAudioASIO", drivers[0], drivers);
            }
            else
            {
                drivers = new string[] { "No ASIO!? -> go download ASIO4All" };
                EnumManager.UpdateEnum("NAudioASIO", drivers[0], drivers);
            }

            //also add a default entry to the sampling rate enum
            var samplingRates = new string[] { "44100" };

            EnumManager.UpdateEnum("ASIODriverSampleRates", samplingRates[0], samplingRates);
        }
Exemplo n.º 2
0
        public virtual void OnImportsSatisfied()
        {
            FEngine = AudioService.Engine;
            ParameterNamesConfig.SliceCount = 0;

            var flags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public;

            //Retrieve all FieldInfos
            var fields = GetType().GetFields(flags);

            FDiffInputs.Clear();

            foreach (var fi in fields)
            {
                if (typeof(IDiffSpread).IsAssignableFrom(fi.FieldType))
                {
                    //Retrieve the value of the field, and cast as necessary
                    var spread = (IDiffSpread)fi.GetValue(this);
                    FDiffInputs.Add(spread);
                }
            }

            ParameterNamesConfig.Changed += ParameterNamesConfig_Changed;
        }
Exemplo n.º 3
0
		public virtual void OnImportsSatisfied()
		{
			FEngine = AudioService.Engine;
            ParameterNamesConfig.SliceCount = 0;
			
			BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public;

			//Retrieve all FieldInfos
			var fields = GetType().GetFields(flags);
			
			FDiffInputs.Clear();
			
			foreach (var fi in fields)
			{
				if(typeof(IDiffSpread).IsAssignableFrom(fi.FieldType))
				{
					//Retrieve the value of the field, and cast as necessary
					var spread = (IDiffSpread)fi.GetValue(this);
					FDiffInputs.Add(spread);
				}
			}

            ParameterNamesConfig.Changed += ParameterNamesConfig_Changed;
		}
Exemplo n.º 4
0
		public AudioEngineNode()
		{
			FEngine = AudioService.Engine;
			
			var drivers = AsioOut.GetDriverNames();
			
			if (drivers.Length > 0)
			{
				EnumManager.UpdateEnum("NAudioASIO", drivers[0], drivers);
			}
			else
			{
				drivers = new string[]{"No ASIO!? -> go download ASIO4All"};
				EnumManager.UpdateEnum("NAudioASIO", drivers[0], drivers);
			}

            //also add a default entry to the sampling rate enum
            var samplingRates = new string[] { "44100" };
            EnumManager.UpdateEnum("ASIODriverSampleRates", samplingRates[0], samplingRates);
			
		}
Exemplo n.º 5
0
		public AudioEngineNode()
		{
			FEngine = AudioService.Engine;
			
			var drivers = AsioOut.GetDriverNames();
			
			if (drivers.Length > 0)
			{
				EnumManager.UpdateEnum("NAudioASIO", drivers[0], drivers);
			}
			else
			{
				drivers = new string[]{"No ASIO!? -> go download ASIO4All"};
				EnumManager.UpdateEnum("NAudioASIO", drivers[0], drivers);
			}
		}
Exemplo n.º 6
0
		static AudioService()
		{
			FAudioEngine = new AudioEngine();
		}		
 static AudioService()
 {
     FAudioEngine = new AudioEngine();
 }