Hmm, ok thanks for the answers. The point is, that I'm writing a bachelor thesis about the cocos2d framework and I currently write about the possibilities to implement audio. Based on your answers, I mainly will focus on the more common pyglet implementation but will mention that there are some problems and disadvantages.
Thanks so far, if you have any further ideas which I should take into consideration, let me know. Max On 29 Mai, 22:19, Peter Enerccio <[email protected]> wrote: > But using AVBin backend is terrible choice. This was the reason I left > pyglet audio in favor of pymedia. The main problem is the absence of > playback of non wav files that are loaded from strings (stringios), > sockets, or anything file like. Whats worse, the fact that avbin is > installed will even prevent playing wavs (which do not need physical > files) from the file like object, because even wavs will be handled by > the AVBin. > > I would really suggest to switch to pymedia, it is older, it has a few > bugs (ie Alsa volume setting is crashing, but works fine with OSS) but > it can manage to play about anything from about any source. > Cheers. > > 2011/5/29 claudio canepa <[email protected]>: > > > > > > > On Sun, May 29, 2011 at 9:44 AM, Max P <[email protected]> wrote: > > >> Hello, > >> I had a quick look over the way, how audio is integrated into cocos2d > >> applications. My impression is, that there are three different > >> implementation patterns available, audio via > >> - pyglet, > >> - SDL, > >> - pygame. > > >> Am I right at this point? > >> And if yes, which one should I prefer, is there a recommended one of > >> these three, which i should use in my cocos2d application? > > >> Thanks, Max > > >> -- > > > Really there are two audios: > > > pyglet: > > uses AVbin library, homepagehttp://code.google.com/p/avbin/ > > Pyglet binary installers for windows an mac includes that library, in Linux > > it is a separate install. > > Actual games for pyglet and cocos all use the pyglet audio backend, so you > > can find examples. > > There are reports of AVbin malfunctioning in some particular linux boxes, > > Last AVbin commit in the repo is dated feb 2009. > > SDL/pygame: based in the project pygame-ctypes by Alex Hokner. > > For windows the easy way to get it working is install pygame. There's no > > specification about which extra packages you need in other OSes, but I > > *guess* installing pygame will provide the needed libraries. > > While SDL and pygame are active projects and solid libraries, I think theres > > no active maintenance for the ctypes bindings. > > SDL api is probably broader than AVbin. > > I know no game using this backend, so no examples and no proven track > > record. > > At the moment, I will choose the pyglet backend. > > -- > > 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. -- 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.
