summaryrefslogtreecommitdiff
path: root/formats
diff options
context:
space:
mode:
authormikeos <mike.osipov@gmail.com>2013-09-30 02:45:07 +0400
committermikeos <mike.osipov@gmail.com>2013-09-30 03:20:34 +0400
commit21fc77c51e6cc011d200539a2426f5f9d276d210 (patch)
tree2f66a6ec306daf2d88859459f2a7bccee6678289 /formats
parent10a50690b33ca7fefc7768d156eb2b75544082ea (diff)
add wav support
Diffstat (limited to 'formats')
-rw-r--r--formats/__init__.py1
-rw-r--r--formats/wav.py19
2 files changed, 19 insertions, 1 deletions
diff --git a/formats/__init__.py b/formats/__init__.py
index 7ebd9fd..60a35fc 100644
--- a/formats/__init__.py
+++ b/formats/__init__.py
@@ -1,4 +1,3 @@
-import importlib
import os
path = os.path.dirname(__file__) or "."
diff --git a/formats/wav.py b/formats/wav.py
new file mode 100644
index 0000000..76c2ed3
--- /dev/null
+++ b/formats/wav.py
@@ -0,0 +1,19 @@
+from formats.__base__ import *
+
+class WavHandler(BaseHandler):
+ name = "wav"
+ ext = "wav"
+
+ def encode(self, opt, info):
+ self.add("wav sox -")
+ self.add_sox_args(opt, info)
+ self.add("%f")
+
+ return self.build()
+
+ def tag(self, *args):
+ self.log("SKIP ")
+ return True
+
+def init():
+ return WavHandler