WIP: Music callback
- 头几拍会抖动一下,导致对不上拍子
This commit is contained in:
@@ -7,7 +7,7 @@ namespace OCES.Audio
|
||||
/// 环境音通道播放器。
|
||||
/// 与 MusicChannelPlayer 逻辑相同,但使用 AmbienceTransition 表,不涉及节拍对齐。
|
||||
/// </summary>
|
||||
public class AmbienceChannelPlayer
|
||||
class AmbienceChannelPlayer
|
||||
{
|
||||
readonly AmbienceTransitionConfig m_transitionConfig;
|
||||
readonly MonoBehaviour m_coroutineHost;
|
||||
@@ -20,7 +20,7 @@ namespace OCES.Audio
|
||||
|
||||
uint m_currentContainerId;
|
||||
|
||||
public AmbienceChannelPlayer(
|
||||
internal AmbienceChannelPlayer(
|
||||
AmbienceTransitionConfig transitionConfig,
|
||||
MusicContainerPlayer player,
|
||||
MonoBehaviour coroutineHost)
|
||||
@@ -34,7 +34,7 @@ namespace OCES.Audio
|
||||
// 公开接口
|
||||
// ─────────────────────────────────────────────
|
||||
|
||||
public void SwitchTo(uint newContainerId, uint fromPathId, uint toPathId)
|
||||
internal void SwitchTo(uint newContainerId, uint fromPathId, uint toPathId)
|
||||
{
|
||||
if (newContainerId == this.m_currentContainerId && this.m_currentHandle != null)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user