/// <summary> Stops the audio player. If the player is already stopped /// this method is a no-op. /// </summary> protected internal virtual void stopPlayer() { if (player != null) { player.close(); player = null; playerThread = null; } }