0x163mL / pygraphics

Automatically exported from code.google.com/p/pygraphics
0 stars 0 forks source link

Sound #40

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
BeforeSummer07 has partially-implemented sound features using tkSnack.  
Complete this, 
although possibly switch to Pyglet (does it do sound?) as described here:

  http://docs.google.com/View?docid=dcz4ghwz_4gkcqnsdw

Original issue reported on code.google.com by pgr...@gmail.com on 6 May 2008 at 6:14

GoogleCodeExporter commented 8 years ago

Original comment by pgr...@gmail.com on 6 May 2008 at 6:23

GoogleCodeExporter commented 8 years ago
I'm looking into this, and it seems like it'd be a lot of fun to implement it.

Original comment by C.J.Madd...@gmail.com on 9 May 2008 at 2:19

GoogleCodeExporter commented 8 years ago
I am looking into alternate ways of doing sound with pygame or pyglet. As far 
as I
can tell pyglet has no support for sound manipulation and editing. 

Pygame on the other hand has some really stupid bugs. I think I may know how to 
fix
them, but it's a shame that the distributed source is so unusable.

More later...

Original comment by C.J.Madd...@gmail.com on 1 Jul 2008 at 7:33

GoogleCodeExporter commented 8 years ago
I can't believe all the progress I made today. I figure out the bug in pygame,
created our own workaround (that I think is simpler and easier, but whatever), 
and
converted all of sound.py's functionality into pygame (and it all works in 
stereo and
mono).

Pros:

- It's faster
- Sounds cleaner
- It works in Wing!!!!

Cons:

- default values like frequency, encoding, and channels cannot be changed on 
the fly
- The code is a little more cumbersome
- No built in waveform calculator or grapher, will have to do that in-house

I will commit it tomorrow once I've had a bit of time to debug. I think it's 
better
than tkSnack, mainly because we might be able to avoid tk COMPLETELY!

Original comment by C.J.Madd...@gmail.com on 2 Jul 2008 at 12:30