def METHOD_NAME(self, player_state):
    if not G.ADDON.getSettingBool('audio_offset_enabled'):
        return
    current_offset = common.json_rpc('Player.GetAudioDelay')['offset']
    target_offset = G.ADDON.getSettingNumber('audio_offset')
    if current_offset != target_offset:
        ret = common.json_rpc('Player.SetAudioDelay', {'playerid': player_state['playerid'],
                                                       'offset': target_offset})
        LOG.debug('Audio offset has been set to {}s (player value {}s)', target_offset, ret['offset'])