Volume control etc.

Discussion in 'Basic4ppc Wishlist' started by derez, Feb 26, 2008.

  1. derez

    derez Expert Licensed User

    I have been looking for means to control the volume from the application without success.
    the registry has entries under Current_user\controlpanel\volume but these only serve for storing the last volume for the next use, not for real time changes.
    I have found a small application that is an independent volume control, which shows that there is a way to do it. It is attached.

    Anybody has an idea ?

    I think that controlling the screen brightness in real time is a similar problem (without opening the windows form that has the sliding bar).
     

    Attached Files:

  2. sahoopes

    sahoopes Member Licensed User

    FMOD Library should be able to do that

    FMOD is a B4PPC library that wraps the FMODCE library from FMOD.org. Right? According to FMOD.org (FMOD docs) volume control is supported on Win32 and WinCE.

     
  3. Standa

    Standa Member Licensed User

    Very interesting - this is last feature what I need for my music player. So, is it possible to include volume control to Fmod for B4ppc?
     
  4. sahoopes

    sahoopes Member Licensed User

    My thoughts were that the overhead for using FMOD is so huge that we should be able to take advantage of as much of that overhead as possible. fmodce.dll from fmod.org is 440 Kb.
     
  5. Cableguy

    Cableguy Expert Licensed User

    Found this on the web after a short search..
     
  6. Louis

    Louis Active Member Licensed User

    If you are dealing with the FMOD library then yes we need to somehow wrap the volume class into a Basic4ppc library. However if you are making a fas action game, orneed a wave file lowered in the background, check out the library entitled New Hekkus Sound Library Wrapper, which let's you control all aspects in real-time of wave files. You can even mix them in real-time as well. HTH.
     
  7. sahoopes

    sahoopes Member Licensed User

  8. Erel

    Erel Administrator Staff Member Licensed User

  9. sahoopes

    sahoopes Member Licensed User

    Many thanks. :sign0188:
     
  10. esbenr

    esbenr New Member

    I have used this in WM5:

    [DllImport("COREDLL")]
    public static extern int waveOutSetVolume(IntPtr hMod, int lVolume);

    [DllImport("COREDLL")]
    public static extern void waveOutGetVolume(IntPtr hMod, IntPtr waveOutVolume);
     
Loading...