Ejemplo n.º 1
0
        public SoundType(List <TextNode> nodes, bool isDocumentation = false)
        {
            TypeLoader.SetValues(this, nodes);

            if (!isDocumentation)
            {
                AudioManager.LoadSound(Name, FileExplorer.FindPath(FileExplorer.Misc, Name, ".wav"));
                Buffer = AudioManager.GetBuffer(Name);
            }
        }
Ejemplo n.º 2
0
 internal static GameAudioSource Play(GameAudioBuffer buffer, bool inGame, float volume, float pitch, Vector position, bool loops)
 {
     return(device.Play(buffer, inGame, volume, pitch, position, loops));
 }