def set_data(self, data_buffer):
if len(data_buffer) % (self.sample_width * self.channels) != <NUM_LIT:0>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self._buffer = data_buffer<EOL>self._index = <NUM_LIT:0><EOL>self._left = <NUM_LIT:0> if self._buffer is None else len(self._buffer)<EOL>
Set new data for this audio stream. 

        :Parameters:

            `data_buffer` : str, basestring, Bytes
                a string buffer with a length multiple of (sample_width * channels)