Hi all, I'm working on a music program right now and I'm quite happy with pyglet so far as it offers me a nice way to load compressed sounds, apply pitch to them and play them back simultaneously.
Now I really like to save the output to a WAV-file but got a bit stuck in the process. Could anybody give me a hint where I should start to extend pyglet for my use case? After looking into the sources I came to the following conclusions: * There's no built-in way for that * The pyglet/media-section is too high level for this kind of work * Therefore I have to extend a pyglet/media/drivers class (Is this right?) The final program has to run on out-of-the-box Windows computers, so I think pyglet/media/drivers/directsound is my best bet. I don't have any background knowledge of DirectSound, but from what I have seen in the sources I think pyglet internally works like that: * Each soundplayer writes to an own secondary buffer * The driver itself is a primary buffer that somehow magically mixes all the players and transfers the result to the system / the soundcard However, I cannot find a place where I can fetch the data inside the primary buffer (the one with the final mix). Is it even possible to do something like that or is my idea flawed? Any thoughts and insights are highly appreciated :) P.S.: If you think that I'm out of luck here, but you know of a library that can play back compressed sounds, pitch them, hold them in memory for later use, and can finally dump everything to disc, I'd be happy to hear from you as well. Greetings, Hauke -- 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 http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/groups/opt_out.
