PDA

View Full Version : [Python] Trying to load a dll



dodle
December 29th, 2008, 05:28 PM
I'm trying bass.dll


from ctypes import *

mp3Play = windll.LoadLibrary("bass.dll")

musicFile = "Kitty.mp3"
mp3Play.BASS_MusicLoad(musicFile)

Error:

ValueError: Procedure probably called with not enough arguments (16 bytes missing)

catchmeifyoutry
December 29th, 2008, 10:30 PM
Hmm, isn't that Windows specific? This is an ubuntu linux forum, are you using ubuntu? Probably wont find much help for windows specific programming problems here as most people here cannot reproduce your problems. Also, if you somehow are trying to get ctypes.windll working on ubuntu it will not work (unless you're running python in Wine ...etc... nevermind).

neonive
April 12th, 2011, 01:24 AM
http://blog.dt.in.th/2010/12/using-bass-in-python/

Here is an example of loading BASS in Python on Linux.

Maybe you can get some hints from it.

[: neonive

cariboo
April 12th, 2011, 04:09 AM
Thread closed, as it's 3 years old. I doubt if the op is still looking for an answer to the question.