Commit Graph

80 Commits

Author SHA1 Message Date
Oliver ac10d26d07 track *.wav with git-lfs 2026-06-10 11:22:00 +08:00
Oliver 41ae4cc405 Update testing audio. 2026-06-10 11:05:20 +08:00
Oliver 6b963f4e4a chore: standarize code style 2026-06-10 11:05:04 +08:00
Oliver e9b30edc56 Update AGENTS.md 2026-06-10 11:04:45 +08:00
Oliver 6004985e06 fix: AudioImportTool NPE when run outside Play mode
Replace AudioExtendSettings.Instance with local AssetDatabase-loaded field to avoid nullref when AudioSystem hasn't yet initialized.
2026-06-05 11:59:25 +08:00
Oliver 7f6d0d5317 更新说明 2026-06-04 19:10:50 +08:00
Oliver 88ff0d1534 增加测试文件,修改buffer size解决淡变时会爆音的问题 2026-05-28 19:50:58 +08:00
Oliver d9a4ea0689 Update binary data. 2026-05-26 10:12:29 +08:00
Oliver 4813f4edf0 chore: comment out debug log 2026-05-26 10:12:10 +08:00
Oliver cf5a2ba2c2 feat: 音效、音量、触感开关控制 2026-05-22 20:40:35 +08:00
Oliver 669fdea58c closed: streaming support 2026-05-19 12:07:48 +08:00
Oliver 46e691e6ce 关掉节拍器 2026-05-19 12:07:21 +08:00
Oliver 40cc2a1329 update: Playersettings 2026-05-19 12:07:13 +08:00
Oliver f1c0fb5fae feat: 在Unity内支持直接调整音频文件进行混音 2026-05-19 12:04:31 +08:00
Oliver 3c2558f5e7 WIP: Live mixing support.
checkpoint: StreamingAsset Loader.
2026-05-18 19:25:09 +08:00
Oliver 3190802bd2 Add system using guide. 2026-05-18 19:04:15 +08:00
Oliver 0823328d99 feat: support asset bundle 2026-05-15 16:45:58 +08:00
Oliver f34145d4cf unify coding style 2026-05-15 10:13:09 +08:00
Oliver d19f61d226 feat: 解耦音频与触感系统 2026-05-15 10:09:55 +08:00
Oliver fa4fd67d98 feat: migrate setting centralize to haptic system. 2026-05-14 20:42:21 +08:00
Oliver 10fa82bdce Update AGENTS.md 2026-05-14 20:23:29 +08:00
Oliver 6cd802ba3a feat: AudioSettings 独立出配置文件,而不是零散在代码各处。 2026-05-14 20:22:00 +08:00
Oliver 892689fed5 更新测试文件 2026-05-14 15:28:56 +08:00
Oliver d13ab4c409 fix: 短音频使用同步加载 2026-05-14 15:28:40 +08:00
Oliver 342dba6596 chors: 更新配置文件,修改节拍器判断逻辑 2026-05-14 11:36:21 +08:00
Oliver c30239111c feat: Unified ResourceLoader
- 新增 统一 `ResourceLoader`类,负责同步/异步加载资源,并对已加载的资源缓存。
- 修改 `MusicTransition`, `AudioSystem`, `LongAudioContainerPlayer`, `MusicSegment`, 'SfxSystem`, `HapticSystem`使用最新的`ResourceLoader`。
2026-05-14 11:35:38 +08:00
Oliver 36f4c2e2d3 Update testing file 2026-05-12 15:53:00 +08:00
Oliver b0d117a24d update meta file 2026-05-12 15:51:54 +08:00
Oliver 6e8e17ec44 feat: StartOffset
- 实现startOffset
- 修复EndOffset = 0 + 循环播放时,音乐会大量重复播放的错误。
- 增加数据校验和 BeatClock 联动。StartOffset不正确时停止bar+级 callback。
- BeatClock 现在会在每次重新播放时重启,以解决EndOffset配置错误被舍弃时,拍子对不上的问题。
2026-05-12 15:47:04 +08:00
Oliver bc388303be 更新测试文件 2026-05-08 16:41:04 +08:00
Oliver e81d6c379d refactor: 移除未使用的变量 2026-05-08 16:40:50 +08:00
Oliver a29b56a65e feat: 在Inspector中可直接修改起始音乐。 2026-05-08 16:40:26 +08:00
Oliver b8e3071376 fix: Metronome may get a null AudioSystem.Instance. 2026-05-08 16:28:25 +08:00
Oliver 49a96ed091 feat: 一个可以关掉的Metronome 2026-05-07 12:09:45 +08:00
Oliver af4cd4da3f WIP: StartOffset 2026-05-07 12:09:16 +08:00
Oliver 0f30f98846 refactor: 重构 Transition 查询逻辑,移除 PathId 改用 ContainerId 匹配 2026-04-28 15:30:01 +08:00
Oliver fccd6c9e0e 添加测试文件 2026-04-27 20:23:30 +08:00
Oliver 61414b2fef feat: 未配置bpm时不启动回调 2026-04-27 20:10:32 +08:00
Oliver 5bd0135f7b WIP: 无效音乐配置不会启动音乐回调 2026-04-27 19:57:48 +08:00
Oliver 5d92acc613 更新Unity设置 2026-04-27 19:14:09 +08:00
Oliver 401dfc69b2 feature: change playing sound property 2026-04-23 19:32:06 +08:00
Oliver f38103d2dc feature: Segment end offset 2026-04-21 17:25:48 +08:00
Oliver e46c324ac5 refactor: WaitForAlignment coroutine use BeatClock.cs insted of calculate independently. 2026-04-21 15:01:55 +08:00
Oliver 15f220a4c7 fix: change crossfade curve 2026-04-21 10:40:36 +08:00
Oliver 01e1b67dc6 chore: update project settings for consistent application identifiers and scripting backend 2026-04-20 14:31:35 +08:00
Oliver c87a5a1e30 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 63c5f6766c 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 0fdd76022d 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 caca71c63a add test file 2026-04-16 19:21:15 +08:00
Oliver dac34089dd WIP: MusicTransition SyncPoint 2026-04-16 17:55:29 +08:00