Jump to content

Recommended Posts

Posted

According to the page you gave the URL to, that API call takes two parameters and in your example code you've only given it one...

I have a catapult. Give me all the money or I will fling an enormous rock at your head.

Posted

I don't understand This. Sorry.

Can you give me an example please?

Thanks

Sorry, which my English is so bad. I come from Switzerland ;-)

Posted

It would be something like

$err = DllCall("Winmm", "int", "waveOutGetVolume", "int", 0, "long", $vol)

but I've just tried it and it doesn't seem to work...

Does anyone else know whether you can pass values by reference to dlls using dllcall? Cos that's what would need to happen for this particular API call to work...

I have a catapult. Give me all the money or I will fling an enormous rock at your head.

Posted

$err = DllCall("Winmm", "int", "waveOutGetVolume", "int", 0, "long", $vol)

Return:

$vol = "" ;empty string :-(

$err[0] = 11

$err[1] = 0

$err[2] = 0

But I would for $vol a value (0 - 100)

Sorry, which my English is so bad. I come from Switzerland ;-)

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...