Browse Source

Added sample project for audio support.

improved_timing
Ian Burgmyer 7 years ago
parent
commit
6652e878fb
  1. 11
      DotSDL.sln
  2. 6
      Samples/Sample.Audio/App.config
  3. 8
      Samples/Sample.Audio/Program.cs
  4. 36
      Samples/Sample.Audio/Properties/AssemblyInfo.cs
  5. 73
      Samples/Sample.Audio/Sample.Audio.csproj
  6. 9
      Samples/Sample.Audio/Window.cs

11
DotSDL.sln

@ -16,6 +16,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.BasicPixels", "Sampl
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.BasicPixelsCore", "Samples\Sample.BasicPixelsCore\Sample.BasicPixelsCore.csproj", "{51055215-1F3D-436F-B88C-02A5C58C6989}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Audio", "Samples\Sample.Audio\Sample.Audio.csproj", "{FFE65F50-D4CB-4246-9FCB-E7E3E0FA2730}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
@ -48,6 +50,14 @@ Global
{51055215-1F3D-436F-B88C-02A5C58C6989}.Release|x64.Build.0 = Release|x64
{51055215-1F3D-436F-B88C-02A5C58C6989}.Release|x86.ActiveCfg = Release|x86
{51055215-1F3D-436F-B88C-02A5C58C6989}.Release|x86.Build.0 = Release|x86
{FFE65F50-D4CB-4246-9FCB-E7E3E0FA2730}.Debug|x64.ActiveCfg = Debug|x64
{FFE65F50-D4CB-4246-9FCB-E7E3E0FA2730}.Debug|x64.Build.0 = Debug|x64
{FFE65F50-D4CB-4246-9FCB-E7E3E0FA2730}.Debug|x86.ActiveCfg = Debug|x86
{FFE65F50-D4CB-4246-9FCB-E7E3E0FA2730}.Debug|x86.Build.0 = Debug|x86
{FFE65F50-D4CB-4246-9FCB-E7E3E0FA2730}.Release|x64.ActiveCfg = Release|x64
{FFE65F50-D4CB-4246-9FCB-E7E3E0FA2730}.Release|x64.Build.0 = Release|x64
{FFE65F50-D4CB-4246-9FCB-E7E3E0FA2730}.Release|x86.ActiveCfg = Release|x86
{FFE65F50-D4CB-4246-9FCB-E7E3E0FA2730}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -55,5 +65,6 @@ Global
GlobalSection(NestedProjects) = preSolution
{C1CCAC4E-6914-4BC1-B81F-BDFB68B476F6} = {70DA3135-B76E-421D-B9CF-E49CD6440B0A}
{51055215-1F3D-436F-B88C-02A5C58C6989} = {70DA3135-B76E-421D-B9CF-E49CD6440B0A}
{FFE65F50-D4CB-4246-9FCB-E7E3E0FA2730} = {70DA3135-B76E-421D-B9CF-E49CD6440B0A}
EndGlobalSection
EndGlobal

6
Samples/Sample.Audio/App.config

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup>
</configuration>

8
Samples/Sample.Audio/Program.cs

@ -0,0 +1,8 @@
namespace Sample.Audio {
class Program {
static void Main(string[] args) {
var window = new Window(512, 256);
window.Start(500, 16);
}
}
}

36
Samples/Sample.Audio/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("Sample.Audio")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Sample.Audio")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[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("ffe65f50-d4cb-4246-9fcb-e7e3e0fa2730")]
// 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")]

73
Samples/Sample.Audio/Sample.Audio.csproj

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{FFE65F50-D4CB-4246-9FCB-E7E3E0FA2730}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Sample.Audio</RootNamespace>
<AssemblyName>Sample.Audio</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Window.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\DotSDL\DotSDL.csproj">
<Project>{c645c551-c6a4-4312-bcaf-df94b0eb878e}</Project>
<Name>DotSDL</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

9
Samples/Sample.Audio/Window.cs

@ -0,0 +1,9 @@
using DotSDL.Graphics;
namespace Sample.Audio {
internal class Window : SdlWindow {
public Window(int width, int height) : base("DotSDL Audio Example", new Point{ X = WindowPosUndefined, Y = WindowPosUndefined }, width, height, 128, 32) {
}
}
}
Loading…
Cancel
Save