On Wed, Jul 22, 2009 at 12:32 AM, Ian Mallett
<geometrian@xxxxxxxxx> wrote:
Hi again,
Hmmm, the note of your original approach is the same, but the timbre is different. Mine matches a sine wave made with Audacity for tone. I notice mine has less crackle than the original--but it's still there.
The issue then is that crackle...
I thought the issue might be the buffer size. (the buffer size default for pre_init is 0, while for init it 3072. I don't know if the pre_init changes anything that way. Changing it didn't work, however.
As an aside, pygame.sndarray.samples(...) doesn't seem to work unless the mixer is intitialized in stereo...
I looked at the array manually, but didn't notice anything weird--although there's A LOT of values...
It's good you got a solution though.
Ian