Skip to content
New issue

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

Julia 0.5 wavplay broken on Debian Linux #39

Closed
dancasimiro opened this issue Oct 22, 2016 · 1 comment
Closed

Julia 0.5 wavplay broken on Debian Linux #39

dancasimiro opened this issue Oct 22, 2016 · 1 comment

Comments

@dancasimiro
Copy link
Owner

I'm running WAV.jl on Julia 0.5 and Debian Jessie (8.6), and get the following error messages when attempting to run 'wavplay':

julia> wavplay(y, fs) 
ERROR: MethodError: no method matching unsafe_convert(::Type{Ptr{Void}}, ::Int64)
Closest candidates are:
 unsafe_convert{T}(::Type{Ptr{Void}}, ::Base.RefValue{T}) at refpointer.jl:49 unsafe_convert{T}(::Type{Ptr{Void}}, ::Base.RefArray{T,A<:AbstractArray,R}) at refpointer.jl:73 
 unsafe_convert(::Type{Ptr{Void}}, ::IOStream) at iostream.jl:27 ... in wavplay(::Array{Float64,1}, ::Int64) at /home/pvt/.julia/v0.5/WAV/src/wavplay-pulse.jl:16

I do have libpulse-dev installed.

dancasimiro added a commit that referenced this issue Nov 9, 2016
Fix Issue #39 (Wavplay is broken)

I used specific types in the ccall signatures and am more rigorous. I had to manually
lay out the samples to play stereo files correctly. I don't know if this worked in
earlier versions of Julia. I usually use the audioqueue implementation.
@dancasimiro
Copy link
Owner Author

Fixed in v0.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant