def bias(self, bias): """Add a bias constant to each sample value.""" assert not self.__locked self.__frames = audioop.bias(self.__frames, self.__samplewidth, bias) return self