Open basicallydan opened 11 years ago
I currently don’t own a windows machine, and I have not recently tried running Hallon on one. I believe this issue stems from the libspotify DLL using stdcall, which mangles the names in a predictable manner. It’s possible this fix might work (but I cannot try it myself):
module Spotify
class API
@ffi_convention = :stdcall
end
end
require "spotify"
The warning you receive about running the gem on an unknown platform is not fixable without a new release of the spotify gem, but it is no cause for concern at the moment.
I’ve updated the posted snippet in my comment. It should be correct now, but as I said earlier I have no way of trying it for myself at the moment.
Hey Kim,
Thanks, I'll give that a go when I'm in the office - put that in the file where I'm requiring Hallon, right?
Yep! Make sure to put it before you require Hallon.
Hey!
Thanks for making this wrapper - it's great! I'm having no problems on mac, but when I run my script on windows with the latest DLL in the directory (12.1.52) I get this error:
Any ideas what could be going on here?
Thanks!