On Thu, Aug 4, 2011 at 7:36 PM, Facundo Batista <[email protected]>wrote:

> On Tue, Aug 2, 2011 at 11:12 PM, claudio canepa <[email protected]>
> wrote:
>
> > I packaged the scripts and data in a zip, would you mind to try ?
> > first try sound(pygame sample).py
> > this is pure pygame, and should tell if there's a problem in your ubuntu
> +
> > pygame
> > then try test_accelerate_speed_plus_pygame_audio.py
> > to see if going from pure pygame to pygame + cocos shows problems.
>
>

Both tests works. In the second test, though, a legend appeared saying
> "there is no soundcard", but the sound was there.
>
>
Great !!!


> As I had to un-mute the laptop after sleeping, I re-tried the test you
> said before, just running the test from Daniel... and it works! (it
> seems that last time the laptop was muted, and I was misleaded from
> the "no soundcard" message in the terminal.
>
> So, what do you think? Should I migrate to the "SDL" backend for
> audio? Which dependency does this add to my game?
>
>
About dependencies:

Well, as individual .dlls in windows it adds
libogg-0.dll
libvorbis-0.dll
libvorbisfile-3.dll
SDL.dll
SDL_image.dll
SDL_mixer.dll
smpeg.dll

At the time I patched cocos/audio with conditional code for windows to get
the libraries from the stock pygame package, and warned windows users to
install pygame to have cocos SDL backend.

This suggest using the pygame provided libraries is ok.

Your last experiment with test_audio_sdl_effect.py suggest that it found the
libraries somewhere in the system. Maybe the ones coming from pygame ?

About which backend:

pure pygame sound  |  cocos\audio, which is pyglet-ctypes
   widely used          |         little test field
   maintained            |         unmaintained
  works in Macs       |         works in Macs ?


The only thing that precludes me to chose pure pygame is that, at the times
of pygame 1.7, some modules would not work without instantiating a pygame
window. But I don't remember which modules, and don't know potential changes
to the current pygame version.
Your try with  test_accelerate_speed_plus_pygame_audio.py  (which uses pure
pygame) is encouraging, but they can be surprises.

I mailed Daniel about these issues, will report later .
If you do further experiments, I'm all ears to hear about them.

cheers !
--
claudio

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" 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/cocos-discuss?hl=en.

Reply via email to