title: In pyaudio, how can I get a stream to 'consistently' produce sound?
body: <p>I am using an endless <em>while</em> loop to convert byte data (used in single chunks), to an integer value (in order to 'manipulate' those values and then reconvert the values back to bytes again and write the bytes to the PyAudio stream (for sound).</p>
  <p>Everything plays smoothly <em>until</em> I write a complex function that takes up too much processing time. Then, I hear a bunch of pops, snaps and clicks over the audio. I notice that the reason for this happening, is because (between the time that the program loops to play the next chunk of streamed data provided to the PyAudio stream), there is a 'transition' of silence <em>as</em> there is a 'wait' for the loop to repeat... and that is what creates the pops between each chunk being played <em>if</em> the loop is 'too slow'.</p>
  <p>Is there a way to make the 'voltage' going to the speakers at 'constant' based on the <em>last</em> data value provided to the PyAudio's stream? This would be a great way to smoothen out the 'pops', 'snaps' and 'clicks' when playing sound, instead of there being silence <em>until</em> the next value is passed to the stream. The reason I don't use a chunk greater than 1, is because I want to do many 'creative' things with PyAudio (through an endless loop), and have values inside the loop determine the 'voltage level' going to the speakers.</p>