'Compute ReplayGain values and return a list of results
dictionaries as given by `parse_tool_output`.'

def compute_chunk_gain(self, items, is_album):

    cmd = [self.command]
    cmd += [self.method]
    cmd += ['-p']
    args = (cmd + [syspath(i.path, prefix=False) for i in items])
    self._log.debug(u'executing    {0}', u'    '.join(map(displayable_path, args)))
    output = call(args)
    self._log.debug(u'analysis    finished:    {0}', output)
    results = self.parse_tool_output(output, (len(items) + is_album))
    self._log.debug(u'{0}    items,    {1}    results', len(items), len(results))
    return results
