Skip to content

TPAudioPackage

Tomasz Piowczyk edited this page Sep 8, 2018 · 1 revision

TPAudioBundle

public TPAudioObject[] AudioObjects;

TPAudio

/// Gets AudioSource from GameObject named "TPAudioSource"
/// On Get - returns source - if null, create it
/// On Set - behaves like preset
public static AudioSource SFXSource  { get {} set {} }

/// Gets AudioSource from GameObject named "TPAudioThemeSource"
/// On Get - returns source - if null, create it
/// On Set - behaves like preset
public static AudioSource ThemeSource { get {} set {} }

/// Removes all Audio Bundles from pool
public static void Dispose(){}
public static void RemoveFromPool(string bundleName){}
public static void RemoveFromPool(TPAudioBundle bundle){}

public static void AddToPool(string bundleName, TPAudioBundle bundle){}
public static void AddToPool(TPAudioBundle bundle){}


public static AudioSource SetClip(TPAudioBundle bundle, string audioName, TPAudioSource source = TPAudioSource.SFX){}
public static AudioSource SetClip(string bundleName, string audioName, TPAudioSource source = TPAudioSource.SFX){}

public static void Play(TPAudioBundle bundle, string audioName, TPAudioSource source = TPAudioSource.SFX, ulong delay = 0){}
public static void Play(string bundleName, string audioName, TPAudioSource source = TPAudioSource.SFX, ulong delay = 0){}
public static void Play(TPAudioBundle bundle, string audioName, Action onAudioEnd, TPAudioSource source = TPAudioSource.SFX, ulong delay = 0){}
public static void Play(string bundleName, string audioName, Action onAudioEnd, TPAudioSource source = TPAudioSource.SFX, ulong delay = 0){}

public static void PlayOneShot(TPAudioBundle bundle, string audioName, float volumeScale = 1.0f){}
public static void PlayOneShot(string bundleName, string audioName, float volumeScale = 1.0f){}
public static void PlayOneShot(TPAudioBundle bundle, string audioName, Action onAudioEnd, float volumeScale = 1.0f){}
public static void PlayOneShot(string bundleName, string audioName, Action onAudioEnd, float volumeScale = 1.0f){}

public static AudioClip GetClip(TPAudioBundle bundle, string audioName){}
public static AudioClip GetClip(string bundleName, string audioName){}

public static TPAudioBundle GetBundle(string bundleName){}
public static bool HasKey(string key){}

Clone this wiki locally