getAudioSource method
Converts an audio source message to a player, using the cache if it is already cached.
Implementation
AudioSourcePlayer getAudioSource(AudioSourceMessage audioSourceMessage) {
final id = audioSourceMessage.id;
var audioSourcePlayer = _audioSourcePlayers[id];
if (audioSourcePlayer == null) {
audioSourcePlayer = decodeAudioSource(audioSourceMessage);
_audioSourcePlayers[id] = audioSourcePlayer;
}
return audioSourcePlayer;
}