Skip to content

Commit

Permalink
Organize hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
rokujyushi committed Aug 14, 2024
1 parent ef61661 commit a2a850b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OpenUtau.Core/Voicevox/VoicevoxRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,12 @@ ulong HashPhraseGroups(RenderPhrase phrase) {
using (var writer = new BinaryWriter(stream)) {
writer.Write(phrase.preEffectHash);
writer.Write(phrase.phones[0].tone);
writer.Write(phrase.phones[0].direct);
//if (phrase.phones[0].direct) {
writer.Write(phrase.phones[0].toneShift);
//} else {
// phrase.phones.ForEach(x => writer.Write(x.toneShift));
//}
writer.Write(phrase.phones[0].volume);
return XXH64.DigestOf(stream.ToArray());
}
Expand Down

0 comments on commit a2a850b

Please sign in to comment.