diff --git a/.github/LICENSE/NAudio.txt b/.github/LICENSE/NAudio.txt new file mode 100644 index 0000000..789db5b --- /dev/null +++ b/.github/LICENSE/NAudio.txt @@ -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. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b831740..258e5bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/UTAU.Tests/UTAU.Tests.csproj b/UTAU.Tests/UTAU.Tests.csproj index 1c81600..cae9f31 100644 --- a/UTAU.Tests/UTAU.Tests.csproj +++ b/UTAU.Tests/UTAU.Tests.csproj @@ -30,18 +30,9 @@ - - $(YMM4DirPath)NAudio.dll - - - $(YMM4DirPath)NAudio.Core.dll - $(YMM4DirPath)Newtonsoft.Json.dll - - $(YMM4DirPath)System.Numerics.Tensors.dll - $(YMM4DirPath)YukkuriMovieMaker.Controls.dll diff --git a/UTAU/Synthesis/WaveIo.cs b/UTAU/Synthesis/WaveIo.cs index d4a694c..635352b 100644 --- a/UTAU/Synthesis/WaveIo.cs +++ b/UTAU/Synthesis/WaveIo.cs @@ -15,7 +15,7 @@ internal static class WaveIo var frames = new List(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) { diff --git a/UTAU/UTAU.csproj b/UTAU/UTAU.csproj index 8878866..8de947c 100644 --- a/UTAU/UTAU.csproj +++ b/UTAU/UTAU.csproj @@ -12,6 +12,8 @@ + + @@ -22,18 +24,6 @@ - - $(YMM4DirPath)NAudio.dll - false - - - $(YMM4DirPath)NAudio.Core.dll - false - - - $(YMM4DirPath)NAudio.Midi.dll - false - $(YMM4DirPath)NCalc.Core.dll false @@ -92,8 +82,13 @@ - - + + + + + + +