32 lines
738 B
C#
32 lines
738 B
C#
|
using SHADE;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace SHADE_Scripting.Audio
|
|||
|
{
|
|||
|
public static class AudioHandler
|
|||
|
{
|
|||
|
public static Dictionary<string, AudioClipHandler> audioClipHandlers = new Dictionary<string, AudioClipHandler>();
|
|||
|
|
|||
|
//Functions here, maybe
|
|||
|
public static void StopAllSounds(bool fadeOut)
|
|||
|
{
|
|||
|
foreach (KeyValuePair<string, AudioClipHandler> h in audioClipHandlers)
|
|||
|
{
|
|||
|
h.Value.Stop(fadeOut);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public static void PauseAllSounds(bool pause)
|
|||
|
{
|
|||
|
foreach (KeyValuePair<string, AudioClipHandler> h in audioClipHandlers)
|
|||
|
{
|
|||
|
h.Value.SetPause(pause);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|