On Tue, Aug 2, 2011 at 8:31 PM, Facundo Batista <[email protected]>wrote:
[snip responses, thanks]

> Last year Daniel Moisset checked in code based on pygame-ctypes to do
> audio,
> > found under cocos\audio.
> > The working status for this code on Linux is unknown to me.
> > Just out of curiosity,  test_audio_sdl_effect.py (included in the test
> > directory) works in ubuntu ?
>
> Not here...
>
> $ python test_audio_sdl_effect.py
> there is no soundcard
>
> For the record, I have the following pygame installed:
>
>    1.9.1release-0ubuntu2
>
>
>
 --
>
.    Facundo
>

Ahá. The next logical question would be
Pure pygame sound is working in that box ?

I don't know Daniel rationale in choosing pyglet-ctypes, so I tried the
naive approach of use pure pygame from a cocos script.

I looked at pygame/examples to lift code doing sound without pygame window,
sound.py was promising.
Played ok in my box.
Then I copy paste from there to cocos\test\test_accelerate_speed.py

Running the script I got sound played and screen animation by cocos
performing.

As a starting point is encouraging.
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.

As a reference, I'm on win xp, pygame version: '1.9.2pre-svn2794'

zip link: http://sites.google.com/site/xcocos/files/cocosypygameaudio.zip

--
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