Commit Graph

25 Commits

Author SHA1 Message Date
Oliver 9d34a8b556 增加测试文件,修改buffer size解决淡变时会爆音的问题 2026-05-28 19:50:58 +08:00
Oliver 25919b3f79 Update binary data. 2026-05-26 10:12:29 +08:00
Oliver 410e6b0a4f 更新测试文件 2026-05-14 15:28:56 +08:00
Oliver adb506bbfd chors: 更新配置文件,修改节拍器判断逻辑 2026-05-14 11:36:21 +08:00
Oliver 42d37512ed Update testing file 2026-05-12 15:53:00 +08:00
Oliver bb472da311 更新测试文件 2026-05-08 16:41:04 +08:00
Oliver ab6e9e74e0 WIP: StartOffset 2026-05-07 12:09:16 +08:00
Oliver 8ea862b546 refactor: 重构 Transition 查询逻辑,移除 PathId 改用 ContainerId 匹配 2026-04-28 15:30:01 +08:00
Oliver 2fa3fa49d7 添加测试文件 2026-04-27 20:23:30 +08:00
Oliver e0ab4e4f7e feature: Segment end offset 2026-04-21 17:25:48 +08:00
Oliver a4dee6d59b refactor: WaitForAlignment coroutine use BeatClock.cs insted of calculate independently. 2026-04-21 15:01:55 +08:00
Oliver 5cd7da8301 fix: change crossfade curve 2026-04-21 10:40:36 +08:00
Oliver 0e4caa1119 refactor(audio): restructure audio constants and remove deprecated files
- Add AudioConsts.cs with Cues, NameDictionaries, and Parameters classes
- Remove AudioEnumIds.cs, AudioEnums.cs, and AudioObjectDefinitions.cs
- Update AudioObject.cs to include CueName property and serialization
- Update AudioSystem.cs to use new NameDictionaries and Parameters classes
- Update SetStateBind.cs to use Parameters.GameState type
- Change UI text from "PlaySound" to "StopSound" in SampleScene.unity
- Update binary audio data file AudioObject.bytes
2026-04-17 16:00:19 +08:00
Oliver accd311e1c refactor: use PlayDelayed API for audio delay and add Stop by ID support
- Replace PlayAfterDelay coroutine with AudioSource.PlayDelayed
- Add Stop(audioId) public API
- Add startWithMusic toggle
- Clean up namespace and debug macros
2026-04-17 11:20:17 +08:00
Oliver 2b34d0bf94 feat: SyncPoint.SameAsCurrentSegment music transition
- Add SameAsCurrentSegment mode to align new container's timeSamples with the old container's playback position, accounting for FadeInOffset
- Fix BeatClock callback burst when Restart is called with a past dspTime
- Add GetFirstLeafSource() for resolving playback position across nested containers
- Manual BeatClock.Restart replaces OnContainerEntered subscription for accurate timing with SyncPoint
2026-04-16 20:50:34 +08:00
Oliver ee68275e32 WIP: MusicTransition SyncPoint 2026-04-16 17:55:29 +08:00
Oliver 813f4254c9 feat: add PlayOnTrigger for music-synced audio playback
- Add PlayOnTrigger method to AudioSystem for scheduling audio playback on music sync events (beat/bar/grid)
- Rename ButtonInvoker to SetStateBind for better clarity
- Update PlaySoundBind to support both direct playback and trigger-based playback with callback flags
- Add CallbackFlags enum (MusicSyncBeat, MusicSyncBar, MusicSyncGrid)
- Update Metronome demo to use new callback flag naming convention
- Add test audio file sfx_notice_test.wav
- Update scene UI to demonstrate PlayOnTrigger functionality
2026-04-16 14:39:58 +08:00
Oliver ca6fff2717 feat: Add switch container functionality 2026-04-15 21:05:17 +08:00
Oliver ce850a0e30 WIP: haptic system bridge 2026-04-13 15:32:04 +08:00
Oliver d18a7544c4 feat: Import Haptic System 2026-04-13 14:56:06 +08:00
Oliver 0f204aa794 feat: prepare music callback data. 2026-04-03 14:48:42 +08:00
Oliver a4f2eb645a feat: 重构音频系统 - 重命名AudioScheduler为SfxSystem并添加Accented音效类型
- 将AudioScheduler重命名为SfxSystem,统一命名规范
- 新增MixingType.Accented音效类型,支持强调音效独立混音
- 重构音频混合器层级: Master下新增Regular中间层
- SfxSystem使用外部AudioSourcePool,与MusicSystem隔离
- 修复ambiencePoolRoot父节点错误(原错误挂载到musicPoolRoot)
- Play方法支持onPlay回调
- 同步更新AudioObject.bytes二进制配置数据
2026-04-03 11:53:15 +08:00
Oliver 89c024e781 feat: implement audio object definitions and refactor audio system
- Add AudioObjectDefinitions.cs with name-to-ID mappings and ambiguity detection
- Update AudioSystem.cs to support Play(uint) and deprecated Play(string) with warnings
- Rename PitchStepManager to PitchStepResolver and update all references
- Refactor generated code to use 'this.' prefix and foreach loops
- Remove TestEnum from audio enums and IDs
- Update SampleScene.unity to use new AudioSystem namespace and rain sound parameter
- Optimize binary serialization in generated audio classes
2026-04-02 14:31:46 +08:00
Oliver e032f7687f 解决重复切换State的时候会导致重复播放对应Segment的问题。
修复FadeIn读取了FadeOut参数的问题。
增加Initial Delay功能。
重构AudioScheduler.ConfigureSource() -> SetupSource(), RegisterActiveSound(), StartPlayBack()。
移动长音频相关功能至LongAudio文件夹。
2026-03-25 17:01:38 +08:00
Oliver 41e38311f0 first commit 2026-03-20 17:55:53 +08:00