On 1/10/08, Mike Lawrence <[EMAIL PROTECTED]> wrote:
>
> Can pyglet create and audio object that has separate right and left
> channels? I understand that it can playback pre-recorded stereo audio,
> and if you create, say, a pure tone you can manipulate the 3d space,
> but I'm trying to create two pure tones, one played to each ear.
>
> Suggestions?

Modify your tone generator class to create stereo data.  The channels
are interleaved, with the left channel first.  So:

[0, 1, 2, 3, 4, ...]

send 0 to left ear, 1 to right ear, 2 to left ear, etc.

Remember to set the channels attribute to 2 on the audio_format object
and to allocate a buffer twice as large.

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