commit c514afacd6ad3bdd6d45516444e334eba78543c5 Author: NorbiPeti Date: Mon Oct 19 18:04:11 2015 +0200 Initial Commit diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b06e864 --- /dev/null +++ b/.gitignore @@ -0,0 +1,212 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +build/ +bld/ +[Bb]in/ +[Oo]bj/ + +# Visual Studio 2015 cache/options directory +.vs/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +artifacts/ + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +_NCrunch_* +.*crunch*.local.xml + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +## TODO: Comment the next line if you want to checkin your +## web deploy settings but do note that will include unencrypted +## passwords +#*.pubxml + +*.publishproj + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config + +# Windows Azure Build Output +csx/ +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.pfx +*.publishsettings +node_modules/ +orleans.codegen.cs + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# LightSwitch generated files +GeneratedArtifacts/ +_Pvt_Extensions/ +ModelManifest.xml diff --git a/MCAudioSpectrumAnalyzer.sln b/MCAudioSpectrumAnalyzer.sln new file mode 100644 index 0000000..12f283a --- /dev/null +++ b/MCAudioSpectrumAnalyzer.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.23107.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MCAudioSpectrumAnalyzer", "MCAudioSpectrumAnalyzer\MCAudioSpectrumAnalyzer.csproj", "{9E4089A1-1F55-4BE2-9AE3-78E9B0904E2D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9E4089A1-1F55-4BE2-9AE3-78E9B0904E2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9E4089A1-1F55-4BE2-9AE3-78E9B0904E2D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9E4089A1-1F55-4BE2-9AE3-78E9B0904E2D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9E4089A1-1F55-4BE2-9AE3-78E9B0904E2D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/MCAudioSpectrumAnalyzer/Analyzer.cs b/MCAudioSpectrumAnalyzer/Analyzer.cs new file mode 100644 index 0000000..95b8bd7 --- /dev/null +++ b/MCAudioSpectrumAnalyzer/Analyzer.cs @@ -0,0 +1,177 @@ +using System; +using System.Collections.Generic; +using System.IO.Ports; +using System.Windows; +using System.Windows.Forms; +using Un4seen.Bass; +using Un4seen.BassWasapi; + +namespace MCAudioSpectrumAnalyzer +{ + + internal class Analyzer + { + private bool _enable; //enabled status + private Timer _t; //timer that refreshes the display + private float[] _fft; //buffer for fft data + private ProgressBar _l, _r; //progressbars for left and right channel intensity + private WASAPIPROC _process; //callback function to obtain data + private int _lastlevel; //last output level + private int _hanctr; //last output level counter + private List _spectrumdata; //spectrum data buffer + //private Spectrum _spectrum; //spectrum dispay control + private ComboBox _devicelist; //device list + private bool _initialized; //initialized flag + private int devindex; //used device index + + private int _lines = 16; // number of spectrum lines + + //ctor + public Analyzer(ProgressBar left, ProgressBar right, ComboBox devicelist) + { + _fft = new float[1024]; + _lastlevel = 0; + _hanctr = 0; + _t = new Timer(); + _t.Tick += _t_Tick; + //_t.Interval = 25; //40hz refresh rate + _t.Interval = 50; //20 Hz + _t.Enabled = false; + _l = left; + _r = right; + _l.Minimum = 0; + _r.Minimum = 0; + _r.Maximum = ushort.MaxValue; + _l.Maximum = ushort.MaxValue; + _process = new WASAPIPROC(Process); + _spectrumdata = new List(); + _devicelist = devicelist; + _initialized = false; + Init(); + } + + // Serial port for arduino output + public SerialPort Serial { get; set; } + + // flag for display enable + public bool DisplayEnable { get; set; } + + //flag for enabling and disabling program functionality + public bool Enable + { + get { return _enable; } + set + { + _enable = value; + if (value) + { + if (!_initialized) + { + var array = (_devicelist.Items[_devicelist.SelectedIndex] as string).Split(' '); + devindex = Convert.ToInt32(array[0]); + bool result = BassWasapi.BASS_WASAPI_Init(devindex, 0, 0, BASSWASAPIInit.BASS_WASAPI_BUFFER, 1f, 0.05f, _process, IntPtr.Zero); + if (!result) + { + var error = Bass.BASS_ErrorGetCode(); + MessageBox.Show(error.ToString()); + } + else + { + _initialized = true; + _devicelist.Enabled = false; + } + } + BassWasapi.BASS_WASAPI_Start(); + } + else BassWasapi.BASS_WASAPI_Stop(true); + System.Threading.Thread.Sleep(500); + _t.Enabled = value; + } + } + + // initialization + private void Init() + { + bool result = false; + for (int i = 0; i < BassWasapi.BASS_WASAPI_GetDeviceCount(); i++) + { + var device = BassWasapi.BASS_WASAPI_GetDeviceInfo(i); + if (device.IsEnabled && device.IsLoopback) + { + _devicelist.Items.Add(string.Format("{0} - {1}", i, device.name)); + } + } + _devicelist.SelectedIndex = 0; + Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_UPDATETHREADS, false); + result = Bass.BASS_Init(0, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero); + if (!result) throw new Exception("Init Error"); + } + + //timer + private void _t_Tick(object sender, EventArgs e) + { + int ret = BassWasapi.BASS_WASAPI_GetData(_fft, (int)BASSData.BASS_DATA_FFT2048); //get channel fft data + if (ret < -1) return; + int x, y; + int b0 = 0; + + //computes the spectrum data, the code is taken from a bass_wasapi sample. + for (x=0; x<_lines; x++) + { + float peak = 0; + int b1 = (int)Math.Pow(2, x * 10.0 / (_lines - 1)); + if (b1 > 1023) b1 = 1023; + if (b1 <= b0) b1 = b0 + 1; + for (;b0 255) y = 255; + if (y < 0) y = 0; + _spectrumdata.Add((byte)y); + //Console.Write("{0, 3} ", y); + } + + Form1.Instance.Set(_spectrumdata); + if (Serial != null) + { + Serial.Write(_spectrumdata.ToArray(), 0, _spectrumdata.Count); + } + _spectrumdata.Clear(); + + + int level = BassWasapi.BASS_WASAPI_GetLevel(); + _l.Value = Utils.LowWord32(level); + _r.Value = Utils.HighWord32(level); + if (level == _lastlevel && level != 0) _hanctr++; + _lastlevel = level; + + //Required, because some programs hang the output. If the output hangs for a 75ms + //this piece of code re initializes the output so it doesn't make a gliched sound for long. + if (_hanctr > 3) + { + _hanctr = 0; + _l.Value = 0; + _r.Value = 0; + Free(); + Bass.BASS_Init(0, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero); + _initialized = false; + Enable = true; + } + } + + // WASAPI callback, required for continuous recording + private int Process(IntPtr buffer, int length, IntPtr user) + { + return length; + } + + //cleanup + public void Free() + { + BassWasapi.BASS_WASAPI_Free(); + Bass.BASS_Free(); + } + } +} diff --git a/MCAudioSpectrumAnalyzer/App.config b/MCAudioSpectrumAnalyzer/App.config new file mode 100644 index 0000000..88fa402 --- /dev/null +++ b/MCAudioSpectrumAnalyzer/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/MCAudioSpectrumAnalyzer/Form1.Designer.cs b/MCAudioSpectrumAnalyzer/Form1.Designer.cs new file mode 100644 index 0000000..1c1c708 --- /dev/null +++ b/MCAudioSpectrumAnalyzer/Form1.Designer.cs @@ -0,0 +1,73 @@ +namespace MCAudioSpectrumAnalyzer +{ + partial class Form1 + { + /// + /// 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 Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.textBox1 = new System.Windows.Forms.TextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(25, 29); + this.textBox1.Multiline = true; + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(349, 156); + this.textBox1.TabIndex = 0; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(417, 90); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 1; + this.button1.Text = "Enable"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(733, 299); + this.Controls.Add(this.button1); + this.Controls.Add(this.textBox1); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Button button1; + } +} + diff --git a/MCAudioSpectrumAnalyzer/Form1.cs b/MCAudioSpectrumAnalyzer/Form1.cs new file mode 100644 index 0000000..d446b8f --- /dev/null +++ b/MCAudioSpectrumAnalyzer/Form1.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace MCAudioSpectrumAnalyzer +{ + public partial class Form1 : Form + { + public static Form1 Instance; + private static StreamWriter sw = new StreamWriter(new FileStream("output.txt", FileMode.Create)); + private static int X = 0; + public Form1() + { + InitializeComponent(); + Instance = this; //TODO: Send to a Java plugin instead + } + + public void Set(List data) + { + if (data.Count < 16) return; + data.ForEach(entry => SetBar(entry, entry)); + } + + private void SetBar(byte index, byte data) + { + byte value = (byte)((((double)data) / 255) * 80); + textBox1.AppendText("SetBar: " + value + "\n"); + sw.WriteLine(string.Concat("#", X++, ",64,0" + ":@")); + sw.WriteLine(string.Concat("scoreboard players set t", (X + 1).ToString(), " tracks ", value)); + sw.WriteLine(""); + } + + ~Form1() + { + sw.Close(); + } + + private void button1_Click(object sender, EventArgs e) + { + new Analyzer(new ProgressBar(), new ProgressBar(), new ComboBox()).Enable = true; + button1.Enabled = false; + button1.Text = "Close to stop"; + } + } +} diff --git a/MCAudioSpectrumAnalyzer/Form1.resx b/MCAudioSpectrumAnalyzer/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/MCAudioSpectrumAnalyzer/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/MCAudioSpectrumAnalyzer/MCAudioSpectrumAnalyzer.csproj b/MCAudioSpectrumAnalyzer/MCAudioSpectrumAnalyzer.csproj new file mode 100644 index 0000000..25fd82b --- /dev/null +++ b/MCAudioSpectrumAnalyzer/MCAudioSpectrumAnalyzer.csproj @@ -0,0 +1,93 @@ + + + + + Debug + AnyCPU + {9E4089A1-1F55-4BE2-9AE3-78E9B0904E2D} + WinExe + Properties + MCAudioSpectrumAnalyzer + MCAudioSpectrumAnalyzer + v4.5.2 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + \ No newline at end of file diff --git a/MCAudioSpectrumAnalyzer/Program.cs b/MCAudioSpectrumAnalyzer/Program.cs new file mode 100644 index 0000000..81fc492 --- /dev/null +++ b/MCAudioSpectrumAnalyzer/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace MCAudioSpectrumAnalyzer +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/MCAudioSpectrumAnalyzer/Properties/AssemblyInfo.cs b/MCAudioSpectrumAnalyzer/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..1d5a449 --- /dev/null +++ b/MCAudioSpectrumAnalyzer/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("MCAudioSpectrumAnalyzer")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("MCAudioSpectrumAnalyzer")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9e4089a1-1f55-4be2-9ae3-78e9b0904e2d")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/MCAudioSpectrumAnalyzer/Properties/Resources.Designer.cs b/MCAudioSpectrumAnalyzer/Properties/Resources.Designer.cs new file mode 100644 index 0000000..1bc9912 --- /dev/null +++ b/MCAudioSpectrumAnalyzer/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MCAudioSpectrumAnalyzer.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MCAudioSpectrumAnalyzer.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/MCAudioSpectrumAnalyzer/Properties/Resources.resx b/MCAudioSpectrumAnalyzer/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/MCAudioSpectrumAnalyzer/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/MCAudioSpectrumAnalyzer/Properties/Settings.Designer.cs b/MCAudioSpectrumAnalyzer/Properties/Settings.Designer.cs new file mode 100644 index 0000000..20c1883 --- /dev/null +++ b/MCAudioSpectrumAnalyzer/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MCAudioSpectrumAnalyzer.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/MCAudioSpectrumAnalyzer/Properties/Settings.settings b/MCAudioSpectrumAnalyzer/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/MCAudioSpectrumAnalyzer/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + +