Python的声音开发包 pySoundic

码农软件 · 软件分类 · 多媒体处理 · 2019-09-14 20:42:02

软件介绍

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)

本文地址:https://codercto.com/soft/d/14607.html

社交的本质:扎克伯格的商业秘密

社交的本质:扎克伯格的商业秘密

兰迪•扎克伯格 / 谢天 / 中信出版集团股份有限公司 / 2016-6-1 / CNY 45.00

从发表个人观点到找工作,从交朋友到找伴侣,社会化媒体的广泛应用、互联技术的高速发展已经改变了我们生活的各个领域。 Facebook早期成员之一,兰迪·扎克伯格阐述了社交的本质,并首次披露Facebook的商业策略。她以社交媒体实践者的视角,分享了自己在Facebook负责营销的从业经历与成长故事,以及对互联网和社会未来变化趋势的思考,并给组织和个人提出了解决方案。一起来看看 《社交的本质:扎克伯格的商业秘密》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

在线进制转换器
在线进制转换器

各进制数互转换器

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码