Skip to content

Commit

Permalink
Merge pull request #12 from OrcusCZ/windows-fix
Browse files Browse the repository at this point in the history
Fixed compilation on windows
  • Loading branch information
r9y9 authored May 30, 2020
2 parents 09a65e4 + 1efaba9 commit 61d0b20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyreaper/creaper.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ cdef class EpochTracker:
return True

cdef GetTrackVoicedFlags(self, _reaper.Track * track,
int32_t * voiced_flags):
np.ndarray[np.int32_t, ndim = 1, mode = "c"] voiced_flags):
cdef int32_t i
for i in range(0, track.num_frames()):
voiced_flags[i] = 1 if track.v(i) else 0
Expand Down Expand Up @@ -181,7 +181,7 @@ def reaper_internal(np.ndarray[np.int16_t, ndim=1, mode="c"] x, fs,
cdef np.ndarray[np.float32_t, ndim= 1, mode = "c"] pm_times \
= np.zeros(pN, dtype=np.float32)
et.GetTrackTimes(pm_track.ptr, & pm_times[0])
et.GetTrackVoicedFlags(pm_track.ptr, & pm[0])
et.GetTrackVoicedFlags(pm_track.ptr, pm)

# Get f0 and correlations
f0_track = Track()
Expand Down

0 comments on commit 61d0b20

Please sign in to comment.