'Computes the album gain of the given album, returns an
AlbumGain object.'

def compute_album_gain(self, album):

    supported_items = album.items()
    output = self.compute_gain(supported_items, True)
    if (not output):
        raise ReplayGainError(u'no    output    from    bs1770gain')
    return AlbumGain(output[(-1)], output[:(-1)])
