On Jan 10, 2008 3:18 PM, Mike Lawrence <[EMAIL PROTECTED]> wrote:
>
> Thanks Alex! Modifying the Sine class was a snap once I knew the
> channels are interleaved. However, the code below produces some
> extraneous static when played, which I'm guessing is because I haven't
> figured out how to allocate a larger buffer. Help?

channels = self.audio_format.channels

>                         data = (ctypes.c_ubyte * samples)()

data = (ctypes.c_ubyte * (samples * channels))()

>                         data = (ctypes.c_short * samples)()

data = (ctypes.c_short * (samples * channels))()

Alex.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to