Esempio n. 1
0
 public override void _Ready()
 {
     this.Stream = GDKnyttAssetManager.loadRaw(rawPath, sampleRate);
     if (this.Autoplay)
     {
         this.Play();
     }
 }
Esempio n. 2
0
    public override void _Ready()
    {
        if (!streamCache.ContainsKey(rawPath))
        {
            streamCache.Add(rawPath, GDKnyttAssetManager.loadRaw(rawPath, sampleRate));
        }
        this.Stream = streamCache[rawPath];

        if (this.Autoplay)
        {
            this.Play();
        }
    }