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