Commit Graph

16 Commits

Author SHA1 Message Date
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 5cd7da8301 fix: change crossfade curve 2026-04-21 10:40:36 +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 e2c9c53aa3 add test file 2026-04-16 19:21:15 +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 a80112a974 Merge branch 'main' into feature/MusicCallback 2026-04-16 11:06:23 +08:00
Oliver ca6fff2717 feat: Add switch container functionality 2026-04-15 21:05:17 +08:00
Oliver d2867810ee feat: Add audio import tool and standardize audio import settings
- Add editor tool to batch apply audio import settings based on configuration files
- Standardize sample rates: SFX/Voice to 22050 Hz, Music to 44100 Hz
- Set quality: SFX/Voice to 0.5, Music to 0.13
- Adjust load types based on audio duration
- Set project sample rate to 48000 Hz
- Update preload settings for voice and music files
2026-04-15 10:05:05 +08:00
Oliver f7ca4b620e feat: Add haptic system integration and audio test UI
- Add new audio assets and PlaySoundBind script for testing audio playback via UI input field.
- Implement haptic feedback integration in SfxSystem and fix initialization timing in HapticSystem.
- Update project settings with correct Android target architecture.
- Adjust DSP buffer size and enable development build debug logging.
2026-04-14 10:18:34 +08:00
Oliver 31d117851e feat: implement volume step feature
- Add volume step functionality with VolumeStepResolver class
- Add VolumeStepThreshold, Volume, and VolumeStep properties to AudioObject
- Integrate volume step resolution in SfxSystem for dynamic audio volume control
2026-04-13 16:56:34 +08:00
Oliver 49e3492d61 add test file 2026-04-09 11:37:58 +08:00
Oliver 49a502e647 WIP: Music callback
- 头几拍会抖动一下,导致对不上拍子
2026-04-07 10:06:02 +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 e774581bfe 增加低通效果开关
- 引入DoTween
- 实现功能
2026-03-27 17:56:49 +08:00
Oliver 41e38311f0 first commit 2026-03-20 17:55:53 +08:00