@@ -5,7 +5,7 @@ namespace STS2RitsuLib.Audio
55{
66 /// <summary>
77 /// Tracks named channels and tagged playback groups for higher-level replacement and bulk stop semantics.
8- /// Tracks named channels 和 tagged playback groups 用于 higher-level replacement 和 bulk stop semantics.
8+ /// 跟踪命名通道和带标签的播放组,用于更高层的替换和批量停止语义。
99 /// </summary>
1010 public sealed class AudioChannelRegistry
1111 {
@@ -20,13 +20,13 @@ private AudioChannelRegistry()
2020
2121 /// <summary>
2222 /// Shared singleton registry.
23- /// Shared singleton 注册表.
23+ /// 共享的单例注册表。
2424 /// </summary>
2525 public static AudioChannelRegistry Shared { get ; } = new ( ) ;
2626
2727 /// <summary>
2828 /// Claims a named channel for a handle, optionally replacing the currently attached playback.
29- /// Claims a named channel 用于 a handle, 可选ly replacing the currently attached playback.
29+ /// 为句柄占用命名通道,并可选择替换当前附加的播放。
3030 /// </summary>
3131 public bool TryClaimChannel ( string channel , IAudioHandle handle , AudioChannelMode mode , bool allowFadeOut )
3232 {
@@ -55,7 +55,7 @@ public bool TryClaimChannel(string channel, IAudioHandle handle, AudioChannelMod
5555
5656 /// <summary>
5757 /// Removes a handle from any named channel it currently owns.
58- /// Removes a handle 从 any named channel it currently owns.
58+ /// 从句柄当前拥有的任何命名通道中移除该句柄。
5959 /// </summary>
6060 public void ReleaseChannel ( IAudioHandle handle )
6161 {
@@ -66,7 +66,7 @@ public void ReleaseChannel(IAudioHandle handle)
6666
6767 /// <summary>
6868 /// Attaches a handle to a tag group for later bulk stop operations.
69- /// Attaches a handle to a tag group 用于 later bulk stop operations.
69+ /// 将句柄附加到标签组,以便稍后执行批量停止操作。
7070 /// </summary>
7171 public void AttachTag ( string tag , IAudioHandle handle )
7272 {
@@ -76,7 +76,7 @@ public void AttachTag(string tag, IAudioHandle handle)
7676
7777 /// <summary>
7878 /// Removes a handle from all tracked channels and tag groups.
79- /// Removes a handle 从 all tracked channels 和 tag groups.
79+ /// 从所有已跟踪通道和标签组中移除句柄。
8080 /// </summary>
8181 public void Detach ( IAudioHandle handle )
8282 {
@@ -87,7 +87,7 @@ public void Detach(IAudioHandle handle)
8787
8888 /// <summary>
8989 /// Stops and releases every handle attached to a tag group.
90- /// Stops 和 releases every handle attached to a tag group.
90+ /// 停止并释放附加到标签组的每个句柄。
9191 /// </summary>
9292 public bool StopTag ( string tag , bool allowFadeOut = true )
9393 {
@@ -108,7 +108,7 @@ public bool StopTag(string tag, bool allowFadeOut = true)
108108
109109 /// <summary>
110110 /// Stops and releases the handle currently attached to a named channel.
111- /// Stops 和 releases the handle currently attached to a named channel.
111+ /// 停止并释放当前附加到命名通道的句柄。
112112 /// </summary>
113113 public bool StopChannel ( string channel , bool allowFadeOut = true )
114114 {
0 commit comments