We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deserialize_lpcm
BoundsError
I ran into this error:
BoundsError: attempt to access 0-element reinterpret(Float32, ::Vector{UInt8}) at index [0:0] Stacktrace: [1] throw_boundserror(A::Base.ReinterpretArray{Float32, 1, UInt8, Vector{UInt8}, false}, I::Tuple{UnitRange{Int64}}) @ Base ./abstractarray.jl:737 [2] checkbounds @ ./abstractarray.jl:702 [inlined] [3] view @ ./subarray.jl:184 [inlined] [4] deserialize_lpcm(format::Onda.LPCMFormat{Float32}, bytes::Vector{UInt8}, sample_offset::Int64, sample_count::Int64) @ Onda /usr/local/share/julia-depot/3de1525bb7/packages/Onda/DmRdb/src/serialization.jl:269 ...
This can be reproduced with this MWE: Onda.deserialize_lpcm(LPCMFormat(1, Float64), UInt8[]). This corner case could be easily fixed by changing:
Onda.deserialize_lpcm(LPCMFormat(1, Float64), UInt8[])
Onda.jl/src/serialization.jl
Line 269 in 9744653
sample_view = sample_start > 0 ? view(sample_interpretation, sample_start:sample_end) : sample_interpretation
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I ran into this error:
This can be reproduced with this MWE:
Onda.deserialize_lpcm(LPCMFormat(1, Float64), UInt8[])
. This corner case could be easily fixed by changing:Onda.jl/src/serialization.jl
Line 269 in 9744653
to:
The text was updated successfully, but these errors were encountered: