pySoundicPython的声音开发包
pySonic 是封装了高性能、跨平台的FMOD声音库 Python 开发包。
示例代码:
import pySonic import time def finished_stream(source): print 'Stream finished playing' # initialize the audio environment w = pySonic.World() # create two sources src1 = pySonic.Source() src2 = pySonic.Source() # load a sound entirely from disk, stream another from disk src1.Sound = pySonic.FileSample('short.wav') src2.Sound = pySonic.FileStream('long.mp3') # position the sources in 3D space src1.Position = (-0.5, 0.0, 0.5) src2.Position = (0.5, 0.0, 0.5) # register a callback for when the stream finishes src2.SetEndStreamCallback(finished_stream) # register a callback for when the stream finishes src1.Play() src2.Play() # just block while we're playing in this example while src1.IsPlaying() or src2.IsPlaying(): time.sleep(1)
评论
python-github2Python 的开发包
python-github2 是 Python 的开发包,封装了 Github API v2 版本。
python-github2Python 的开发包
0
pytrietrie 的开发包
pytrie是一个前缀树(Trie)数据结构的Python开发包。在pytrie模块中,CharTrie和StringTrie类可以执行一个可变的映射接口。这个工具包具有以下特点:完整的可变映射实现。
pytrietrie 的开发包
0
JVOIPLIBVoIP的C++开发包
JVOIPLIB是一个面向对象的VoIP库,采用C++编写。ItisbaseduponworkdoneformythesisattheSchoolforKnowledgeTechnology(or'S
JVOIPLIBVoIP的C++开发包
0
ErlmongoMongoDB 的 Erlang 开发包
Erlmongo是一个第三方的MongoDB的Erlang语言开发包,对MongoDB的特性支持非常完整。示例代码:% -record(mydoc {name, i}).% This will wor
ErlmongoMongoDB 的 Erlang 开发包
0
ErlMySQLMySQL的Erlang开发包
ErlMySQL是一个用Erlang编写的MySQL客户端,并提供接近Connector/C的API,ErlMySQL采用底层的TCP/IPSocket连接到MySQL服务器,可最大限度的提升通讯的性
ErlMySQLMySQL的Erlang开发包
0
gomongoMongoDB的Go开发包
gomongo是Go语言访问MongoDB数据库的开发包。示例代码:packagemainimport"github.com/mikejs/gomongo/mongo"funcmain(){conn,
gomongoMongoDB的Go开发包
0