public virtual void Initialize() { ShouldEndExample = false; ConsoleUpdateStart = 0; System = Fmod.CreateSystem(); }
public SoundController(string fmodPath, float dopplerScale, float distanceFactor, float rollerScale) { DopplerScale = dopplerScale; DistanceFactor = distanceFactor; MaxDistance = distanceFactor * 8192f; MinDistance = distanceFactor * 0.5f; RollerScale = rollerScale; Fmod.SetLibraryLocation(fmodPath); FmodSystem = Fmod.CreateSystem(); FmodSystem.Init(32); FmodSystem.Set3DSettings(dopplerScale, distanceFactor, rollerScale); }
public override void Draw() { foreach (ConnectionPoint connectionPoint in inPoints) { connectionPoint.Draw(); } foreach (ConnectionPoint connectionPoint in outPoints) { connectionPoint.Draw(); } GUI.Box(rect, title, style); GUILayout.BeginArea(new Rect(rect.position.x + padding, rect.position.y + padding, width - padding * 2, currentHeight - padding * 2)); // Make text inside textArea wrap when reaching edge EditorStyles.textField.wordWrap = true; GUIStyle centerTextStyle = new GUIStyle(GUI.skin.textField); centerTextStyle.alignment = TextAnchor.MiddleCenter; /* Specify contents of node here */ EditorGUILayout.TextField("ID: " + id.ToString(), centerTextStyle); EditorGUILayout.LabelField("ACTOR NAME"); actorName = EditorGUILayout.TextField(actorName); EditorGUILayout.LabelField("DIALOGUE LINE"); dialogueLine = EditorGUILayout.TextArea(dialogueLine, GUILayout.Height(50), GUILayout.ExpandHeight(false)); if (GUILayout.Button("Add input")) { AddInPoint(); } GUILayout.EndArea(); Fmod.FMODAddon(rect, "", style, currentHeight); DayBank = Fmod.setEvent(); Char = Fmod.setChar(); Day = Fmod.setDialogue(); Clip = Fmod.setClip(); _fmod = Fmod.getBool(); Dia = Fmod.getDay(); }
public static void Init() { _fmodSystem = Fmod.CreateSystem(); _fmodSystem.Init(32); _basePlugin = _fmodSystem.LoadPlugin("resonanceaudio.dll"); _listenerPlugin = _fmodSystem.GetNestedPlugin(_basePlugin, 0); _listenerDSP = _fmodSystem.CreateDSPByPlugin(_listenerPlugin); _soundFieldPlugin = _fmodSystem.GetNestedPlugin(_basePlugin, 1); _sourcePlugin = _fmodSystem.GetNestedPlugin(_basePlugin, 2); _masterChannelGroup = _fmodSystem.MasterChannelGroup; _spatialChannelGroup = _fmodSystem.CreateChannelGroup("spatial"); _masterChannelGroup.AddGroup(_spatialChannelGroup, false); _masterChannelGroup.AddDSP(ChannelControlDSPIndex.DspHead, _listenerDSP); }
private static void Main(string[] args) { //Path to the native library location can be given as the first argument for this example application //Alternatively, the OS can attempt to find it in the default locations (OS Specific) if (args.Length >= 1 && VerifyPath(args[0])) { Fmod.SetLibraryLocation(args[0]); } ConsoleHelpers.Initialize(); while (true) { Type example = UI.Select(); if (example is null || !StartExample(example)) { break; } GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, true); } }
public static void Init() { Fmod.SetLibraryLocation("bin/"); }
public FMODCoreAudioEngine(int sr = 44100) : base(sr) { system = Fmod.CreateSystem(); }