diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-02-09 22:55:40 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-02-09 22:55:40 -0500 |
| commit | aefa631ff3f648060f5c0fe5d51aee89e3898a85 (patch) | |
| tree | 927ffb8f19de6190b20a0180e162e2c8b7f3469e /Sirop.Backend/Playback.cs | |
| parent | e81e3817c0a4b735da47e6c45529c6f88ed4d52f (diff) | |
| download | erable-godot-aefa631ff3f648060f5c0fe5d51aee89e3898a85.tar.gz erable-godot-aefa631ff3f648060f5c0fe5d51aee89e3898a85.tar.bz2 erable-godot-aefa631ff3f648060f5c0fe5d51aee89e3898a85.zip | |
Discord RPC; About window
Diffstat (limited to 'Sirop.Backend/Playback.cs')
| -rw-r--r-- | Sirop.Backend/Playback.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Sirop.Backend/Playback.cs b/Sirop.Backend/Playback.cs index a073ce3..7670193 100644 --- a/Sirop.Backend/Playback.cs +++ b/Sirop.Backend/Playback.cs @@ -1,6 +1,7 @@ +using System; using Gst; -namespace Sirop.Backend.Audio +namespace Sirop.Backend { public static class Playback { @@ -9,18 +10,18 @@ namespace Sirop.Backend.Audio Application.Init(); // Build the pipeline var pipeline = Parse.Launch("playbin uri=file:///home/andrew/Music/4616-werq-by-kevin-macleod.mp3"); - // Start playing pipeline.SetState(State.Playing); // Wait until error or EOS var bus = pipeline.Bus; - var msg = bus.TimedPopFiltered (Constants.CLOCK_TIME_NONE, MessageType.Eos | MessageType.Error); + var msg = bus.TimedPopFiltered(Constants.CLOCK_TIME_NONE, MessageType.Eos | MessageType.Error); // Free resources - pipeline.SetState (State.Null); + pipeline.SetState(State.Null); + - } + } public static void StopAudio() { |
