Added sound import on Linux

This commit is contained in:
Skyler Lehmkuhl 2013-01-20 16:09:05 -05:00
parent 6ba81591c5
commit 023e4ca5bd
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,6 @@ Section: graphics
Priority: optional Priority: optional
Architecture: all Architecture: all
Installed-size: 27000 Installed-size: 27000
Depends: bash, python, python-imaging, imagemagick, libzzip-0-13 Depends: bash, python, python-imaging, imagemagick, libzzip-0-13, sox, python-numpy
Maintainer: skycooler@gmail.com Maintainer: skycooler@gmail.com
Description: Lightningbeam is an open-source animated content creation tool. Description: Lightningbeam is an open-source animated content creation tool.

View File

@ -746,6 +746,9 @@ def import_to_stage(widget=None):
os.system("""osascript -e 'do shell script "easy_install numpy" with administrator privileges'""") os.system("""osascript -e 'do shell script "easy_install numpy" with administrator privileges'""")
import numpy as NP import numpy as NP
SOX_EXEC = 'sox/sox' SOX_EXEC = 'sox/sox'
elif "linux" in svlgui.PLATFORM:
import numpy as NP
SOX_EXEC = "sox"
svlgui.NP = NP svlgui.NP = NP
num_channels = 1 num_channels = 1
out_byps = 2 # Bytes per sample you want, must be 1, 2, 4, or 8 out_byps = 2 # Bytes per sample you want, must be 1, 2, 4, or 8