Skip to content

Commit

Permalink
fix #46
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixWyllow committed Feb 15, 2024
1 parent c081b9e commit 8a1a202
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 101 deletions.
4 changes: 2 additions & 2 deletions ExtensionManifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"author": "PhoenixWyllow",
"repository": "https://github.com/PhoenixWyllow/Soundboard4MacroDeck2",
"packageId": "PhoenixWyllow.Soundboard4MacroDeck",
"version": "2.0.2",
"version": "2.0.3",
"target-plugin-api-version": 40,
"target-macro-deck-version": "2.13.0-b10",
"target-macro-deck-version": "2.13.0",
"dll": "Soundboard4MacroDeck.dll"
}
2 changes: 1 addition & 1 deletion Services/SoundboardPlaybackEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private void Init(bool enableLoop)
};

outputDevice.PlaybackStopped += OnOutputDevicePlaybackStopped;
outputDevice.Volume = Math.Min(_actionParameters.Volume / 100f, 1f);
//outputDevice.Volume = Math.Min(_actionParameters.Volume / 100f, 1f);
}

public void Play()
Expand Down
185 changes: 87 additions & 98 deletions Soundboard4MacroDeck.csproj
Original file line number Diff line number Diff line change
@@ -1,99 +1,88 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionMajor>2</VersionMajor>
<VersionMinor>0</VersionMinor>
<VersionPatch>2</VersionPatch>
<VersionRevision Condition="'$(VersionRevision)' == ''">$([System.DateTime]::UtcNow.ToString("yy"))$([System.DateTime]::UtcNow.DayOfYear.ToString("000"))</VersionRevision>
<!--<PluginFolder>E:\Code\source\repos\MD\Macro-Deck\MacroDeck\bin\Debug\net7.0-windows10.0.22000.0\win-x64\Data\plugins</PluginFolder>-->
<!--<PluginFolder>$(AppData)\Macro Deck\plugins</PluginFolder>-->
</PropertyGroup>

<PropertyGroup>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<TargetFramework>net7.0-windows</TargetFramework>
<Platforms>AnyCPU;x64</Platforms>
<LangVersion>latest</LangVersion>
<RootNamespace>Soundboard4MacroDeck</RootNamespace>
<UseWindowsForms>true</UseWindowsForms>
<ForceDesignerDpiUnaware>true</ForceDesignerDpiUnaware>
<AssemblyName>Soundboard4MacroDeck</AssemblyName>
<ApplicationIcon>Resources\Soundboard.ico</ApplicationIcon>
<Win32Resource />
<NeutralLanguage>en</NeutralLanguage>
<Authors>PhoenixWyllow</Authors>
<Copyright>PhoenixWyllow aka PW.Dev (pw.dev@outlook.com)</Copyright>
<AssemblyVersion>$(VersionMajor).$(VersionMinor).$(VersionRevision)</AssemblyVersion>
<Version>$(VersionMajor).$(VersionMinor).$(VersionPatch)</Version>
<OutputType>Library</OutputType>
<StartupObject />
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<IsPublishable>False</IsPublishable>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>A soundboard plugin for Macro Deck 2</Description>
<PackageProjectUrl>https://github.com/PhoenixWyllow/Soundboard4MacroDeck2/releases</PackageProjectUrl>
<RepositoryUrl>https://github.com/PhoenixWyllow/Soundboard4MacroDeck2</RepositoryUrl>
</PropertyGroup>

<ItemGroup>
<None Remove="Resources\Languages\*.json" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Resources\Languages\*.json" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="NAudio" Version="2.2.1" />
<PackageReference Include="NAudio.Extras" Version="2.2.1" />
<PackageReference Include="sqlite-net-pcl" Version="1.8.116" />
</ItemGroup>

<ItemGroup>
<Reference Include="Macro Deck 2">
<HintPath>E:\Code\source\repos\MD\Macro-Deck\MacroDeck\bin\Release\net7.0-windows10.0.22000.0\win-x64\Macro Deck 2.dll</HintPath>
<!--<HintPath>E:\Code\source\repos\MD\Macro-Deck\bin\Release\netcoreapp3.1\publish\Macro Deck 2.dll</HintPath>-->
<!--<Private>false</Private>-->
</Reference>
</ItemGroup>

<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<None Update="ExtensionIcon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="README.md">
<Pack>True</Pack>
</None>
<None Update="Resources\Languages\CONTRIBUTING_LANGUAGES.md">
<Pack>True</Pack>
</None>
<None Update="ExtensionManifest.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>


<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<ItemGroup>
<PluginFiles Include="$(OutDir)\Soundboard4MacroDeck.dll;$(OutDir)\NAudio*.dll;$(OutDir)\ExtensionManifest.json;$(OutDir)\ExtensionIcon.png" />
</ItemGroup>
<RemoveDir Directories="$(ProjectDir)releases\$(Configuration)\PhoenixWyllow.$(TargetName)\"/>
<Copy DestinationFolder="$(ProjectDir)releases\$(Configuration)\PhoenixWyllow.$(TargetName)\" SourceFiles="@(PluginFiles)" OverwriteReadOnlyFiles="true" SkipUnchangedFiles="true" />
</Target>
</Project>
<PropertyGroup>
<VersionMajor>2</VersionMajor>
<VersionMinor>0</VersionMinor>
<VersionPatch>3</VersionPatch>
<VersionRevision Condition="'$(VersionRevision)' == ''">$([System.DateTime]::UtcNow.ToString("yy"))$([System.DateTime]::UtcNow.DayOfYear.ToString("000"))</VersionRevision>
<!--<PluginFolder>E:\Code\source\repos\MD\Macro-Deck\MacroDeck\bin\Debug\net7.0-windows10.0.22000.0\win-x64\Data\plugins</PluginFolder>-->
<!--<PluginFolder>$(AppData)\Macro Deck\plugins</PluginFolder>-->
</PropertyGroup>
<PropertyGroup>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<TargetFramework>net8.0-windows</TargetFramework>
<Platforms>AnyCPU;x64</Platforms>
<LangVersion>latest</LangVersion>
<RootNamespace>Soundboard4MacroDeck</RootNamespace>
<UseWindowsForms>true</UseWindowsForms>
<ForceDesignerDpiUnaware>true</ForceDesignerDpiUnaware>
<AssemblyName>Soundboard4MacroDeck</AssemblyName>
<ApplicationIcon>Resources\Soundboard.ico</ApplicationIcon>
<Win32Resource />
<NeutralLanguage>en</NeutralLanguage>
<Authors>PhoenixWyllow</Authors>
<Copyright>PhoenixWyllow aka PW.Dev (pw.dev@outlook.com)</Copyright>
<AssemblyVersion>$(VersionMajor).$(VersionMinor).$(VersionRevision)</AssemblyVersion>
<Version>$(VersionMajor).$(VersionMinor).$(VersionPatch)</Version>
<OutputType>Library</OutputType>
<StartupObject />
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<IsPublishable>False</IsPublishable>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>A soundboard plugin for Macro Deck 2</Description>
<PackageProjectUrl>https://github.com/PhoenixWyllow/Soundboard4MacroDeck2/releases</PackageProjectUrl>
<RepositoryUrl>https://github.com/PhoenixWyllow/Soundboard4MacroDeck2</RepositoryUrl>
</PropertyGroup>
<ItemGroup>
<None Remove="Resources\Languages\*.json" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Languages\*.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NAudio" Version="2.2.1" />
<PackageReference Include="NAudio.Extras" Version="2.2.1" />
<PackageReference Include="sqlite-net-pcl" Version="1.8.116" />
</ItemGroup>
<ItemGroup>
<Reference Include="Macro Deck 2">
<HintPath>C:\Program Files\Macro Deck\Macro Deck 2.dll</HintPath>
<!--<HintPath>E:\Code\source\repos\MD\Macro-Deck\bin\Release\netcoreapp3.1\publish\Macro Deck 2.dll</HintPath>-->
<!--<Private>false</Private>-->
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Update="ExtensionIcon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="README.md">
<Pack>True</Pack>
</None>
<None Update="Resources\Languages\CONTRIBUTING_LANGUAGES.md">
<Pack>True</Pack>
</None>
<None Update="ExtensionManifest.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<ItemGroup>
<PluginFiles Include="$(OutDir)\Soundboard4MacroDeck.dll;$(OutDir)\NAudio*.dll;$(OutDir)\ExtensionManifest.json;$(OutDir)\ExtensionIcon.png" />
</ItemGroup>
<RemoveDir Directories="$(ProjectDir)releases\$(Configuration)\PhoenixWyllow.$(TargetName)\" />
<Copy DestinationFolder="$(ProjectDir)releases\$(Configuration)\PhoenixWyllow.$(TargetName)\" SourceFiles="@(PluginFiles)" OverwriteReadOnlyFiles="true" SkipUnchangedFiles="true" />
</Target>
</Project>

0 comments on commit 8a1a202

Please sign in to comment.