fix string/bytes issues

This commit is contained in:
Roman Zeyde
2014-08-07 17:02:09 +03:00
parent cb08b23aa3
commit 16bc186631
5 changed files with 16 additions and 12 deletions

View File

@@ -41,7 +41,7 @@ def load(fileobj):
def loads(data):
x = np.fromstring(str(data), dtype='int16')
x = np.frombuffer(data, dtype='int16')
x = x / scaling
return x