public IAudioPlayer CreatePlayer(Uri source) { var player = new UnityAudioPlayer(this) { Source = source }; ConfigurePlayer(player); return(player); }
internal void ConfigurePlayer(UnityAudioPlayer player) { Call(() => { if (UseResources) { player.LoadResource(); } else { StartCoroutine(player.LoadCoroutine()); } }); }
void RemovePlayingPlayer(UnityAudioPlayer player) { lock (m_playingPlayers) { m_playingPlayers.Remove(player); } }
void AddPlayingPlayer(UnityAudioPlayer player) { lock (m_playingPlayers) { m_playingPlayers.Add(player); } }