Tazman-AudioRecent Updates

Recent Updates

  • Updated on: Feb 22, 2023

    Audio Buses

    Manual Fabric Manual
  • Updated on: Feb 22, 2023

    Audio Source Pool

    Manual Fabric Manual
  • Updated on: Feb 22, 2023

    Version 2.2.1

    This version of Fabric introduces a number of new and exciting audio features as well as improvements and fixes such as:

    Manual Fabric Manual
  • Updated on: Feb 22, 2023

    MicAudioComponent

    Manual Fabric Manual
  • Updated on: Feb 22, 2023

    Component

    Manual Fabric Manual
  • Updated on: Feb 22, 2023

    Event

    Manual Fabric Manual
  • Updated on: Feb 22, 2023

    Event Notifications

    A new set of PostEventNotify functions are available that allow to post events and get various notifications back such as:

    public enum EventNotificationType
    {
    	OnFinished,
    	OnStolenOldest,
    	OnStolenNewest,
    	OnStolenFarthest,
    	OnAudioComponentStopped,
    	OnSequenceNextEntry,
    	OnSequenceAdvance,
    	OnSequenceEnd,
    	OnSequenceLoop,
    	OnSwitch,
    	OnMarker,
    	OnRegionSet,
    	OnRegionQueued,
    	OnRegionEnd,
    	OnAudioComponentPlay,
    	OnPlay
    } 

    Here is a script example on how to post an event and listen for a notification.

    public void Notify(Fabric.EventNotificationType type, string eventName, object info, GameObject gameObject)
    {
        if (info != null)
        {
            if (type == Fabric.EventNotificationType.OnSequenceAdvance)
            {
                Fabric.Component c = info as Fabric.Component;
                if (c != null)
                {
                    Debug.Log("Info: " + c.name);
                }
            }
            else if (type == Fabric.EventNotificationType.OnMarker)
            {
                Fabric.MarkerNotficationData c = info as Fabric.MarkerNotficationData;
                if (c != null)
                {
                    Debug.Log("Offset: " + c._offset + " - Label: " + c._label);
                }
            }
        }
    }
    
    void Update () 
    {
        if (Input.GetKeyDown(KeyCode.Alpha1))
        {
            Fabric.EventManager.Instance.PostEventNotify("Simple", gameObject, Notify);
        }
    }

     

     

     

     

     

     

     

     

     

    Manual Fabric Manual
  • Updated on: Feb 22, 2023

    How to set parameters

    Manual Fabric Manual
  • Updated on: Feb 22, 2023

    How to manage audio assets

    Manual Fabric Manual
  • Updated on: Feb 22, 2023

    How to Post Events

    The game communicates with Fabric by posting events, these is the best and most efficient method for integrating Fabric in your games. An event based system allows:

    • Programmers can post events at any time without affecting the audio
    • Sound Designers create Fabric behaviors without requiring any code integration to start with
    • Sound Designers can change the hierarchy at any time without affecting the game code

     

    Events are posted using the Event manager PostEvent functions,

    Fabric.EventManager.Instance.PostEvent(....

     

    Here are a number of example on how to post events from your game,

    Manual Fabric Manual