NAudioを同梱してYMM4の版から切り離す

このコミットが含まれているのは:
routersys committed 2026-09-07 12:47:05 +09:00
1 親 e5188f19c1
コミット 8078ca06b1
5ファイル変更
+36 -26

検索条件に一致するファイルはありません

+24
ファイルの表示
@@ -0,0 +1,24 @@
NAudio
MIT License
Copyright © Mark Heath & Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+2 -2
ファイルの表示
@@ -112,8 +112,8 @@ jobs:
New-Item -ItemType Directory -Path $stageRoot -Force | Out-Null
New-Item -ItemType Directory -Path "$stageRoot/LICENSE" -Force | Out-Null
foreach ($name in @("UTAU.dll", "WorldNet.dll")) {
$path = "$outDir/$name"
foreach ($path in @("$outDir/plugin/UTAU.dll", "$outDir/WorldNet.dll")) {
$name = Split-Path $path -Leaf
if (-not (Test-Path $path)) {
Write-Error "ビルド結果に $name が見つかりませんでした: $path"
exit 1
-9
ファイルの表示
@@ -30,18 +30,9 @@
</ItemGroup>
<ItemGroup>
<Reference Include="NAudio">
<HintPath>$(YMM4DirPath)NAudio.dll</HintPath>
</Reference>
<Reference Include="NAudio.Core">
<HintPath>$(YMM4DirPath)NAudio.Core.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>$(YMM4DirPath)Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System.Numerics.Tensors">
<HintPath>$(YMM4DirPath)System.Numerics.Tensors.dll</HintPath>
</Reference>
<Reference Include="YukkuriMovieMaker.Controls">
<HintPath>$(YMM4DirPath)YukkuriMovieMaker.Controls.dll</HintPath>
</Reference>
+1 -1
ファイルの表示
@@ -15,7 +15,7 @@ internal static class WaveIo
var frames = new List<double>(Math.Max((int)(reader.Length / Math.Max(reader.WaveFormat.BlockAlign, 1)), 0));
int read;
while ((read = reader.Read(buffer)) > 0)
while ((read = reader.Read(buffer, 0, buffer.Length)) > 0)
{
for (var i = 0; i + channels <= read; i += channels)
{
+9 -14
ファイルの表示
@@ -12,6 +12,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ILRepack" Version="2.0.46" PrivateAssets="all" ExcludeAssets="all" GeneratePathProperty="true" />
<PackageReference Include="NAudio" Version="2.3.0" />
<PackageReference Include="WorldNet" Version="1.1.0" />
</ItemGroup>
@@ -22,18 +24,6 @@
</ItemGroup>
<ItemGroup>
<Reference Include="NAudio">
<HintPath>$(YMM4DirPath)NAudio.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="NAudio.Core">
<HintPath>$(YMM4DirPath)NAudio.Core.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="NAudio.Midi">
<HintPath>$(YMM4DirPath)NAudio.Midi.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="NCalc.Core">
<HintPath>$(YMM4DirPath)NCalc.Core.dll</HintPath>
<Private>false</Private>
@@ -92,8 +82,13 @@
<AdditionalFiles Include="**/*.csv" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(SkipPluginDeploy)' != 'true'">
<Exec Command="mkdir &quot;$(YMM4DirPath)user\plugin\$(ProjectName)&quot; &gt; NUL 2&gt;&amp;1&#xD;&#xA;copy &quot;$(TargetPath)&quot; &quot;$(YMM4DirPath)user\plugin\$(ProjectName)\&quot;&#xD;&#xA;copy &quot;$(TargetDir)WorldNet.dll&quot; &quot;$(YMM4DirPath)user\plugin\$(ProjectName)\&quot;" />
<Target Name="MergePluginAssembly" AfterTargets="PostBuildEvent" Inputs="$(TargetPath);$(TargetDir)NAudio.dll;$(TargetDir)NAudio.Core.dll;$(TargetDir)NAudio.Asio.dll;$(TargetDir)NAudio.Midi.dll;$(TargetDir)NAudio.Wasapi.dll;$(TargetDir)NAudio.WinMM.dll" Outputs="$(TargetDir)plugin\$(TargetFileName)">
<MakeDir Directories="$(TargetDir)plugin" />
<Exec Command="&quot;$(PkgILRepack)\tools\ILRepack.exe&quot; /out:&quot;$(TargetDir)plugin\$(TargetFileName)&quot; /lib:&quot;$([System.IO.Path]::GetDirectoryName('$(TargetPath)'))&quot; /lib:&quot;$([System.IO.Path]::GetDirectoryName('$(YMM4DirPath)'))&quot; /internalize &quot;$(TargetPath)&quot; &quot;$(TargetDir)NAudio.dll&quot; &quot;$(TargetDir)NAudio.Core.dll&quot; &quot;$(TargetDir)NAudio.Asio.dll&quot; &quot;$(TargetDir)NAudio.Midi.dll&quot; &quot;$(TargetDir)NAudio.Wasapi.dll&quot; &quot;$(TargetDir)NAudio.WinMM.dll&quot;" />
</Target>
<Target Name="PostBuild" AfterTargets="MergePluginAssembly" Condition="'$(SkipPluginDeploy)' != 'true'">
<Exec Command="mkdir &quot;$(YMM4DirPath)user\plugin\$(ProjectName)&quot; &gt; NUL 2&gt;&amp;1&#xD;&#xA;copy &quot;$(TargetDir)plugin\$(TargetFileName)&quot; &quot;$(YMM4DirPath)user\plugin\$(ProjectName)\&quot;&#xD;&#xA;copy &quot;$(TargetDir)WorldNet.dll&quot; &quot;$(YMM4DirPath)user\plugin\$(ProjectName)\&quot;" />
</Target>
</Project>