From 84abd2cd11b5bcd78052015cc1f33b9e738b7417 Mon Sep 17 00:00:00 2001 From: lempamo Date: Sat, 25 Feb 2017 16:10:59 -0500 Subject: [PATCH] Basic AudioPlayer planning to use naudio api for this. thoughts? --- .../Applications/AudioPlayer.Designer.cs | 37 +++++++++++++++++ ShiftOS.WinForms/Applications/AudioPlayer.cs | 41 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 ShiftOS.WinForms/Applications/AudioPlayer.Designer.cs create mode 100644 ShiftOS.WinForms/Applications/AudioPlayer.cs diff --git a/ShiftOS.WinForms/Applications/AudioPlayer.Designer.cs b/ShiftOS.WinForms/Applications/AudioPlayer.Designer.cs new file mode 100644 index 0000000..3cc88df --- /dev/null +++ b/ShiftOS.WinForms/Applications/AudioPlayer.Designer.cs @@ -0,0 +1,37 @@ +namespace ShiftOS.WinForms.Applications +{ + partial class AudioPlayer + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + } + + #endregion + } +} diff --git a/ShiftOS.WinForms/Applications/AudioPlayer.cs b/ShiftOS.WinForms/Applications/AudioPlayer.cs new file mode 100644 index 0000000..b7dc9ee --- /dev/null +++ b/ShiftOS.WinForms/Applications/AudioPlayer.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using ShiftOS.Engine; + +namespace ShiftOS.WinForms.Applications +{ + public partial class AudioPlayer : UserControl, IShiftOSWindow + { + public AudioPlayer() + { + InitializeComponent(); + } + + public void OnLoad() + { + + } + + public void OnSkinLoad() + { + + } + + public bool OnUnload() + { + return true; + } + + public void OnUpgrade() + { + + } + } +}