Audio system and rich text
This commit is contained in:
parent
a6f817efbc
commit
68cafff083
161 changed files with 1605 additions and 255 deletions
16
scripts/audio/ChannelPlayer.cs
Normal file
16
scripts/audio/ChannelPlayer.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using Godot;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class ChannelPlayer : Node
|
||||
{
|
||||
[Export] private ChannelSettings settings;
|
||||
[Export] private AudioStream audioStream;
|
||||
[Export] private string channel;
|
||||
|
||||
public void Play()
|
||||
{
|
||||
AudioSequencer.Play(channel, audioStream);
|
||||
if (settings != null)
|
||||
AudioSequencer.ChangeSettings(channel, settings);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue