locked
How to set the volume? RRS feed

  • Question

  • Hi all,
    I use following functions to play wav files on my PDA.

    [DllImport("CoreDll.DLL", EntryPoint = "PlaySound", SetLastError = true)]
    private extern static int WCE_PlaySound(string szSound, IntPtr hMod, int flags);

    [DllImport("CoreDll.DLL", EntryPoint = "PlaySound", SetLastError = true)]
    private extern static int WCE_PlaySoundBytes(byte[] szSound, IntPtr hMod, int flags);

    Now I'm looking for a function to control the volume. Does anyone know such a function?

    Regards
    Karin


    Monday, May 22, 2006 11:28 AM

Answers

  • Hi Karin

    The API waveOutSetVolume is what you are looking for.

    The OpenNETCF.org library does provide a managed wrapper for this API (see www.opennetcf.org). Look for the class OpenNETCF.Win32.Wave

    Hope this helps.

    Michael

     

    Monday, May 22, 2006 1:20 PM