Skip to content

Commit

Permalink
bugfix csm with threads
Browse files Browse the repository at this point in the history
  • Loading branch information
1oly committed Dec 9, 2024
1 parent 709994d commit 9a1f6d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/csm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ end
Calculate cross-spectral matrix from time series `t` which is `S x M` dimensional,
where `S` is the number of samples and `M`the number of microphones.
"""
function csm(t::AbstractArray{T};n=1024,noverlap=div(n,2),fs=1,win=DSP.hanning(n),scaling="spectrum") where T <: AbstractFloat
csm(flat_t(t);n=n,noverlap=noverlap,fs=fs,win=win,scaling=scaling)
function csm(t::AbstractArray{T};n=1024,noverlap=div(n,2),fs=1,win=DSP.hanning(n),scaling="spectrum",multi_thread=true) where T <: AbstractFloat
csm(flat_t(t);n=n,noverlap=noverlap,fs=fs,win=win,scaling=scaling,multi_thread=true)
end

function csm(t::Vector{<:AbstractVector{T}};n=1024,noverlap=div(n,2),fs=1,win=DSP.hanning(n),scaling="spectrum",multi_thread=true) where T <: AbstractFloat
Expand Down

0 comments on commit 9a1f6d2

Please sign in to comment.