SFML community forums
Bindings - other languages => Python => Topic started by: shackra on April 18, 2013, 10:05:57 am
-
sleeeeeeeeep! Dx xd.
I just forked Cocos2D to build from there my own game engine, I noticed many things about Cocos2d (besides they sloooow development). They use pygame's audio module (http://www.cocos2d.org/doc/api/cocos.audio.SDL-module.html), OMG, they don't have spatial audio compared with SFML!.
So, among the changes that I want to do, I want to change pygame's audio module for Sonkun's SFML binding's audio module.
May I just can copy /usr/lib/python2.7/site-packages/sfml/audio.so file and place it on <project>/cocos/audio/ and start coding or I need to take care about more tough things?
cheers!
-
The audio module relies on the system module, so theoretically, you'd need to copy the system.so file too.
But why don't you keep them separated ? Your project would depend on pySFML and Cocos2D at a time. :)-
Does that help ?
-
Yes, it helps :)
But I'm doing this task using ctypes, so it's possible to ship .so/.dll within the engine. Alà Pymunk, you see? :)
-
But I'm doing this task using ctypes, so it's possible to ship .so/.dll within the engine. Alà Pymunk, you see? :)
I guess that should be possible. :)