code: def set_data(self, data_buffer):
          
          if len(data_buffer) % (self.sample_width * self.channels) != 0:
              raise ValueError("length of data_buffer must be a multiple of (sample_width * channels)")
          self._buffer = data_buffer
          self._index = 0
          self._left = 0 if self._buffer is None else len(self._buffer)
docs: Set new data for this audio stream. 
  
          :Parameters:
  
              `data_buffer` : str, basestring, Bytes
                  a string buffer with a length multiple of (sample_width * channels)