Skip to content

Commit efc78a0

Browse files
committed
追加されたenumの対応
1 parent acfe757 commit efc78a0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/VoicevoxCoreSharp.Core.Unity/Runtime/Script/Enum/ResultCode.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ public enum ResultCode : int
112112
/// 無効なMora
113113
/// </summary>
114114
RESULT_INVALID_MORA_ERROR = 30,
115+
/// <summary>
116+
/// 楽譜とFrameAudioQueryの組み合わせが不正
117+
/// </summary>
118+
RESULT_INCOMPATIBLE_QUERIES_ERROR = 35,
115119
}
116120

117121
public static class ResultCodeExt
@@ -147,6 +151,7 @@ internal static ResultCode FromNative(this VoicevoxResultCode code)
147151
VoicevoxResultCode.VOICEVOX_RESULT_INVALID_USER_DICT_WORD_ERROR => ResultCode.RESULT_INVALID_USER_DICT_WORD_ERROR,
148152
VoicevoxResultCode.VOICEVOX_RESULT_INVALID_UUID_ERROR => ResultCode.RESULT_INVALID_UUID_ERROR,
149153
VoicevoxResultCode.VOICEVOX_RESULT_INVALID_MORA_ERROR => ResultCode.RESULT_INVALID_MORA_ERROR,
154+
VoicevoxResultCode.VOICEVOX_RESULT_INCOMPATIBLE_QUERIES_ERROR => ResultCode.RESULT_INCOMPATIBLE_QUERIES_ERROR,
150155
};
151156
#pragma warning restore CS8524
152157
}
@@ -182,6 +187,7 @@ internal static VoicevoxResultCode ToNative(this ResultCode code)
182187
ResultCode.RESULT_INVALID_USER_DICT_WORD_ERROR => VoicevoxResultCode.VOICEVOX_RESULT_INVALID_USER_DICT_WORD_ERROR,
183188
ResultCode.RESULT_INVALID_UUID_ERROR => VoicevoxResultCode.VOICEVOX_RESULT_INVALID_UUID_ERROR,
184189
ResultCode.RESULT_INVALID_MORA_ERROR => VoicevoxResultCode.VOICEVOX_RESULT_INVALID_MORA_ERROR,
190+
ResultCode.RESULT_INCOMPATIBLE_QUERIES_ERROR => VoicevoxResultCode.VOICEVOX_RESULT_INCOMPATIBLE_QUERIES_ERROR,
185191
};
186192
#pragma warning restore CS8524
187193
}

src/VoicevoxCoreSharp.Core/Enum/ResultCode.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ public enum ResultCode : int
112112
/// 無効なMora
113113
/// </summary>
114114
RESULT_INVALID_MORA_ERROR = 30,
115+
/// <summary>
116+
/// 楽譜とFrameAudioQueryの組み合わせが不正
117+
/// </summary>
118+
RESULT_INCOMPATIBLE_QUERIES_ERROR = 35,
115119
}
116120

117121
public static class ResultCodeExt
@@ -147,6 +151,7 @@ internal static ResultCode FromNative(this VoicevoxResultCode code)
147151
VoicevoxResultCode.VOICEVOX_RESULT_INVALID_USER_DICT_WORD_ERROR => ResultCode.RESULT_INVALID_USER_DICT_WORD_ERROR,
148152
VoicevoxResultCode.VOICEVOX_RESULT_INVALID_UUID_ERROR => ResultCode.RESULT_INVALID_UUID_ERROR,
149153
VoicevoxResultCode.VOICEVOX_RESULT_INVALID_MORA_ERROR => ResultCode.RESULT_INVALID_MORA_ERROR,
154+
VoicevoxResultCode.VOICEVOX_RESULT_INCOMPATIBLE_QUERIES_ERROR => ResultCode.RESULT_INCOMPATIBLE_QUERIES_ERROR,
150155
};
151156
#pragma warning restore CS8524
152157
}
@@ -182,6 +187,7 @@ internal static VoicevoxResultCode ToNative(this ResultCode code)
182187
ResultCode.RESULT_INVALID_USER_DICT_WORD_ERROR => VoicevoxResultCode.VOICEVOX_RESULT_INVALID_USER_DICT_WORD_ERROR,
183188
ResultCode.RESULT_INVALID_UUID_ERROR => VoicevoxResultCode.VOICEVOX_RESULT_INVALID_UUID_ERROR,
184189
ResultCode.RESULT_INVALID_MORA_ERROR => VoicevoxResultCode.VOICEVOX_RESULT_INVALID_MORA_ERROR,
190+
ResultCode.RESULT_INCOMPATIBLE_QUERIES_ERROR => VoicevoxResultCode.VOICEVOX_RESULT_INCOMPATIBLE_QUERIES_ERROR,
185191
};
186192
#pragma warning restore CS8524
187193
}

0 commit comments

Comments
 (0)