Unable to load/save wav files
Closed this issue · 1 comments
dfenn commented
I'm unable to load/save wav files (ogg seems to work fine). Following the first example in the documentation, I get this:
julia> using FileIO: load, save, loadstreaming, savestreaming
julia> import LibSndFile
julia> x = load("filename.wav")
([0.0; 1.1359322363886686; … ; -1.1359322363970255; 2.2241829160588416e-12], 44100.0f0, 0x0040, WAV.WAVChunk[WAV.WAVChunk(Symbol("fmt "), UInt8[0x10, 0x00, 0x00, 0x00, 0x03, 0x00, 0x01, 0x00, 0x44, 0xac, 0x00, 0x00, 0x20, 0x62, 0x05, 0x00, 0x08, 0x00, 0x40, 0x00]), WAV.WAVChunk(:fact, UInt8[0x88, 0x58, 0x01, 0x00]), WAV.WAVChunk(:PEAK, UInt8[0x01, 0x00, 0x00, 0x00, 0x2e, 0xb4, 0xef, 0x5e, 0x09, 0x6d, 0x6e, 0x40, 0xa3, 0x84, 0x00, 0x00])])
julia> typeof(x)
Tuple{Array{Float64,2},Float32,UInt16,Array{WAV.WAVChunk,1}}
I think it may be using the WAV package instead to load the file. I'm not particularly familiar with how loader registration works, so I'm unable to diagnose further.
someguynamedjosh commented
Temporarily removing the WAV package resolved this issue for me.