Jump to content

DllCall (waveOutGetVolume)


silvanr
 Share

Recommended Posts

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.

Link to comment
Share on other sites

$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 ;-)

Link to comment
Share on other sites

  • 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
 Share

  • Recently Browsing   0 members

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