Ejemplo n.º 1
0
 public static void Switch(PureData source, PureData target)
 {
     PureDataSpatializerManager.Switch(source.spatializerManager, target.spatializerManager);
     PureDataContainerManager.Switch(source.containerManager, target.containerManager);
     PureDataInfoManager.Switch(source.infoManager, target.infoManager);
     source.clipManager.InitializeClips();
 }
Ejemplo n.º 2
0
 void OnSpatializersDropped(PureDataSpatializerManager droppedObject)
 {
     if (droppedObject != null)
     {
         PureDataSpatializerManager.Switch(spatializerManager, droppedObject);
     }
 }
Ejemplo n.º 3
0
        public override void OnInspectorGUI()
        {
            pureData.InitializeSettings();

            generalSettings           = pureData.generalSettings;
            generalSettingsSerialized = new SerializedObject(generalSettings);
            busManager                   = pureData.busManager;
            busManagerSerialized         = new SerializedObject(busManager);
            spatializerManager           = pureData.spatializerManager;
            spatializerManagerSerialized = new SerializedObject(spatializerManager);
            containerManager             = pureData.containerManager;
            containerManagerSerialized   = new SerializedObject(containerManager);

            Begin();

            ShowGeneralSettings();
            Separator();
            ShowBuses();
            ShowSpatializers();
            ShowContainers();
            Separator();

            End();

            generalSettingsSerialized.ApplyModifiedProperties();
            busManagerSerialized.ApplyModifiedProperties();
            spatializerManagerSerialized.ApplyModifiedProperties();
            containerManagerSerialized.ApplyModifiedProperties();
        }
Ejemplo n.º 4
0
		public override void OnInspectorGUI() {
			pureData.InitializeSettings();
			pureData.hierarchyManager.FreezeTransforms();
			
			generalSettings = pureData.generalSettings;
			generalSettingsSerialized = new SerializedObject(generalSettings);
			busManager = pureData.busManager;
			busManagerSerialized = new SerializedObject(busManager);
			spatializerManager = pureData.spatializerManager;
			spatializerManagerSerialized = new SerializedObject(spatializerManager);
			containerManager = pureData.containerManager;
			containerManagerSerialized = new SerializedObject(containerManager);
			sequenceManager = pureData.sequenceManager;
			sequenceManagerSerialized = new SerializedObject(sequenceManager);
				
			Begin();
			
			ShowGeneralSettings();
			Separator();
			ShowBuses();
			ShowSpatializers();
			ShowContainers();
			ShowSequences();
			Separator();
			
			End();
			
			generalSettingsSerialized.ApplyModifiedProperties();
			busManagerSerialized.ApplyModifiedProperties();
			spatializerManagerSerialized.ApplyModifiedProperties();
			containerManagerSerialized.ApplyModifiedProperties();
			sequenceManagerSerialized.ApplyModifiedProperties();
		}
Ejemplo n.º 5
0
        public static void Switch(PureDataSpatializerManager source, PureDataSpatializerManager target)
        {
            source.spatializers = target.spatializers;

            source.Initialize(source.pureData);
        }