Added sound import on Linux
This commit is contained in:
parent
6ba81591c5
commit
023e4ca5bd
2
control
2
control
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue