From 023e4ca5bdbe2f9b8e13c610d4b72ca0883d734b Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Sun, 20 Jan 2013 16:09:05 -0500 Subject: [PATCH] Added sound import on Linux --- control | 2 +- lightningbeam.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/control b/control index e095b54..a2586db 100644 --- a/control +++ b/control @@ -4,6 +4,6 @@ Section: graphics Priority: optional Architecture: all 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 Description: Lightningbeam is an open-source animated content creation tool. diff --git a/lightningbeam.py b/lightningbeam.py index c226b2a..16b23f1 100755 --- a/lightningbeam.py +++ b/lightningbeam.py @@ -746,6 +746,9 @@ def import_to_stage(widget=None): os.system("""osascript -e 'do shell script "easy_install numpy" with administrator privileges'""") import numpy as NP SOX_EXEC = 'sox/sox' + elif "linux" in svlgui.PLATFORM: + import numpy as NP + SOX_EXEC = "sox" svlgui.NP = NP num_channels = 1 out_byps = 2 # Bytes per sample you want, must be 1, 2, 4, or 8