2005-10-11, 08:01 AM
hmm.. the only way i know is to import waveOutSetVolume from winmm.dll... which is not the master volume and not really 'mute'
by calling
you set the volume to 0... calling auxSetVolume(0,0xFFFFFFFF) sets both speaker to full volume.
btw: the hex-value is for both speakers. the first four digits for the left, the last four digits for the right speaker (or vice versa). 0x0000FFFF sets one of them to full, the other to 0.
Code:
[ DllImport( "winmm.dll", EntryPoint="waveOutSetVolume" )]
private static extern long waveOutSetVolume(long uDeviceID, long dwVolume);
by calling
Code:
long retval = retval=auxSetVolume(0,0);
btw: the hex-value is for both speakers. the first four digits for the left, the last four digits for the right speaker (or vice versa). 0x0000FFFF sets one of them to full, the other to 0.
AMD 1600mHz, 512 M RAM, 20+160 GB drive, Hauppauge PVR-350 + PVR-150 + PVR-150MCE, Win XP Pro SP3, using software decoding.
There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.
There is another theory which states that this has already happened.
(The Restaurant at the End of the Universe)
There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.
There is another theory which states that this has already happened.
(The Restaurant at the End of the Universe)