slloyd has asked for the wisdom of the Perl Monks concerning the following question:

Can anyone tell me how to call the waveOutSetVolume API from within Perl. The Win32 SDK does not say what Import library it is in. I am assuming user32 but it does not work. Any help is greatly appreciated.
$waveOutSetVolume ||= new Win32::API("user32", "waveOutSetVolume", ['N +', 'N'], 'N') || die "unable to load"; my $chk = $waveOutSetVolume->Call($hwnd, 0x6000);

Replies are listed 'Best First'.
Re: Using the waveOutSetVolume Win32 API
by EdwardG (Vicar) on Jun 28, 2004 at 13:20 UTC

    The library you want is Winmm

    The docs you have must be different to my first google hit, which does say where to find this function.

     

Re: Using the waveOutSetVolume Win32 API
by BrowserUk (Patriarch) on Jun 28, 2004 at 13:20 UTC

    Try Winmm.dll. (MM => MultiMedia)


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon