...
 
Commits (2)
......@@ -128,13 +128,19 @@ Please see the developer documentation
Changes
-------
Version_1.4.2 (2019-12-18)
~~~~~~~~~~~~~~~~~~~~~~~~~~
- fixed PySndfile.read_frames method to properly handle reading frames
in parts (previous fix was incomplete)
Version_1.4.1 (2019-12-18)
~~~~~~~~~~~~~~~~~~~~~~~~~~
- extended supported commands to change compression level when writing
flac and ogg files
- fixed PySndfile.read_frames method to preoperly handle reading all
remaining frames in case some frames have already been read
- fixed PySndfile.read_frames and sndio.read method to properly handle
reading frames from the middle of a file
Version_1.4.0 (2019-12-17)
~~~~~~~~~~~~~~~~~~~~~~~~~~
......
......@@ -78,6 +78,10 @@ Please see the developer documentation [here](https://pysndfile.readthedocs.io/e
## Changes
### Version_1.4.2 (2019-12-18)
* fixed PySndfile.read_frames method to properly handle reading frames in parts (previous fix was incomplete)
### Version_1.4.1 (2019-12-18)
* extended supported commands to change compression level when writing flac and ogg files
......
11117 10fc52b1b3e51dc148cbbb17742b752908db84a0359d8cf1b16c71d6292e03af
11243 a4ec0b48c0c848bb860b9d869625fe911b0323e39b13c0cbb2942e71237edf6d
......@@ -35,7 +35,7 @@ from libcpp.string cimport string
cdef extern from "Python.h":
ctypedef int Py_intptr_t
_pysndfile_version=(1, 4, 1)
_pysndfile_version=(1, 4, 2)
def get_pysndfile_version():
"""
return tuple describing the version of pysndfile
......@@ -860,7 +860,7 @@ cdef class PySndfile:
if nframes < 0 :
whence = C_SEEK_CUR | C_SFM_READ
pos = self.thisPtr.seek(0, whence)
nframes = self.thisPtr.frames()
nframes = self.thisPtr.frames() - pos
if dtype == np.float64:
y = self.read_frames_double(nframes, fill_value=fill_value, min_read=min_read)
elif dtype == np.float32:
......
Changes
-------
Version_1.4.2 (2019-12-18)
~~~~~~~~~~~~~~~~~~~~~~~~~~
- fixed PySndfile.read_frames method to properly handle reading frames
in parts (previous fix was incomplete)
Version_1.4.1 (2019-12-18)
~~~~~~~~~~~~~~~~~~~~~~~~~~
- extended supported commands to change compression level when writing
flac and ogg files
- fixed PySndfile.read_frames method to preoperly handle reading all
remaining frames in case some frames have already been read
- fixed PySndfile.read_frames and sndio.read method to properly handle
reading frames from the middle of a file
Version_1.4.0 (2019-12-17)
~~~~~~~~~~~~~~~~~~~~~~~~~~
......
......@@ -70,7 +70,7 @@ elif np.any (ff2 != bfc):
print("bfc", bfc)
write_error = True
else:
print("no erors detected for io with difernt sample encodings")
print("no errors detected for io with difernt sample encodings")
# check reading part of file
ss,_,_ = pysndfile.sndio.read(os.path.join(mydir,'test.wav'), force_2d=True)
......@@ -79,7 +79,15 @@ ssend,_,_ = pysndfile.sndio.read(os.path.join(mydir,'test.wav'), start=100, for
if np.any(ss != np.concatenate((ssstart, ssend), axis=0)):
read_error = True
print("error reading file segments")
print("error reading file segments with sndio")
ww = PySndfile(os.path.join(mydir,'test.wav'))
wwstart = ww.read_frames(100, force_2d=True)
wwend = ww.read_frames(force_2d=True)
if np.any(ss != np.concatenate((wwstart, wwend), axis=0)):
read_error = True
print("error reading file segments with class")
# check writing flac
if "flac" in majors:
......