解决重复切换State的时候会导致重复播放对应Segment的问题。

修复FadeIn读取了FadeOut参数的问题。
增加Initial Delay功能。
重构AudioScheduler.ConfigureSource() -> SetupSource(), RegisterActiveSound(), StartPlayBack()。
移动长音频相关功能至LongAudio文件夹。
This commit is contained in:
2026-03-25 17:01:38 +08:00
parent 0f7e286206
commit e032f7687f
19 changed files with 307 additions and 74 deletions
@@ -57,6 +57,13 @@ namespace OCES.Audio
Bass,
}
public enum ActiveSoundState
{
Pending, // 已进入调度,但还没真正播放
Playing, // 已经开始播放
Finished,
}
public interface IBinarySerializable
{
void DeSerialize(BinaryReader reader);