Pyglet currenty does not have a way to play raw arrays. The OpenAL example 
posted above will do what you need. 

I think this functionality could be useful in pyglet, but nobody is working 
on this at the moment. OpenAL does work well, but it might be nice to have 
a driver agnostic way, which also works on DirectAudio and Pulse backends. 
I might be willing to add this if there is enough interest, but I'm not 
sure of the best API. I think it needs more discussion first.


On Thursday, December 29, 2016 at 7:42:38 PM UTC+9, 杨金骉 wrote:
>
> Yes, it meets my current need, thanks!
> But I would like to modify the wave in the future, so the Sine might be 
> not fit well. Could you tell me a more general way to play a DIY array?
>
> 在 2016年12月29日星期四 UTC+8下午6:08:02,Benjamin Moran写道:
>>
>> Pyglet can create pure frequency waves by using the 
>> pyglet.media.procedural module. Does this do what you want?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to