You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Major refactoring: making audio sources and NoteFinders instantiable, and adding the ability for there to be more than 1 running at a time. This means several breaking API changes, and a ton of changes throughout, but opens the door to some new capabilities I look forward to using.
/// <summary>Used as the key for when a component needs to know the name of a <see cref="ColorChord.NET.API.Sources.IAudioSource"/> to reference.</summary>
25
+
publicconststringSOURCE_NAME="SourceName";
26
+
/// <summary>Used as the key for when a component needs to know the name of a <see cref="ColorChord.NET.API.NoteFinder.NoteFinderCommon"/> to reference.</summary>
/// <summary>Used as the key for when a component needs to know the name of a <see cref="ColorChord.NET.API.Outputs.IOutput"/> to reference.</summary>
29
+
publicconststringOUTPUT_NAME="OutputName";
30
+
/// <summary>Used as the key for when a component needs to know the name of a <see cref="ColorChord.NET.API.Visualizers.IVisualizer"/> to reference.</summary>
31
+
publicconststringVIZ_NAME="VisualizerName";
32
+
/// <summary>Used as the key for when a component needs to know the name of a <see cref="ColorChord.NET.API.Controllers.Controller"/> to reference.</summary>
/// <summary>Reads the given config and finds the corresponding loaded <see cref="IAudioSource"/> instance.</summary>
23
+
/// <remarks>Intended to be used by <see cref="NoteFinderCommon"/> instances to find their audio source to attach to.</remarks>
24
+
/// <param name="config">The config section of a component which needs to find an audio source, the <see cref="ConfigNames.SOURCE_NAME"/> key will be used to find it by name. If the key is missing and there is only one audio source present, it is returned.</param>
25
+
/// <returns>The audio source instance if it was found, null otherwise.</returns>
/// <summary>Reads the given config and finds the corresponding loaded <see cref="NoteFinderCommon"/> instance.</summary>
29
+
/// <remarks>Intended to be used by <see cref="IVisualizer"/> instances to find their NoteFinder to attach to.</remarks>
30
+
/// <param name="config">The config section of a component which needs to find a NoteFinder, the <see cref="ConfigNames.NOTE_FINDER_NAME"/> key will be used to find it by name. If the key is missing and there is only one NoteFinder present, it is returned.</param>
31
+
/// <returns>The NoteFinder instance if it was found, null otherwise.</returns>
/// <summary>Reads the given config and finds the corresponding loaded <see cref="IVisualizer"/> instance.</summary>
35
+
/// <remarks>Intended to be used by <see cref="IOutput"/> instances to find their visualizer to attach to.</remarks>
36
+
/// <param name="config">The config section of a component which needs to find a visualizer, the <see cref="ConfigNames.VIZ_NAME"/> key will be used to find it by name.</param>
37
+
/// <returns>The visualizer instance if it was found, null otherwise.</returns>
/// <summary>Reads the given config and finds the corresponding loaded <see cref="IOutput"/> instance.</summary>
48
+
/// <param name="config">The config section of a component which needs to find an output, the <see cref="ConfigNames.OUTPUT_NAME"/> key will be used to find it by name.</param>
49
+
/// <returns>The output instance if it was found, null otherwise.</returns>
/// <summary>Reads the given config and finds the corresponding loaded <see cref="Controller"/> instance.</summary>
53
+
/// <param name="config">The config section of a component which needs to find a controller, the <see cref="ConfigNames.CONTROLLER_NAME"/> key will be used to find it by name.</param>
54
+
/// <returns>The controller instance if it was found, null otherwise.</returns>
0 commit comments