derez Expert Licensed User Longtime User Feb 26, 2008 #1 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). Attachments VolumeCtrl.zip VolumeCtrl.zip 9.3 KB · Views: 701
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).
S sahoopes Member Licensed User Jun 13, 2008 #2 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. FMUSIC_SetMasterVolume Sets a songs master volume. signed char F_API FMUSIC_SetMasterVolume( FMUSIC_MODULE *mod, int volume ); Parameters mod Pointer to the song to have its master volume set. volume value from 0-256. 0 = silence, 256 = full volume. Click to expand...
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. FMUSIC_SetMasterVolume Sets a songs master volume. signed char F_API FMUSIC_SetMasterVolume( FMUSIC_MODULE *mod, int volume ); Parameters mod Pointer to the song to have its master volume set. volume value from 0-256. 0 = silence, 256 = full volume. Click to expand...
S Standa Member Licensed User Longtime User Jun 27, 2008 #3 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?
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?
S sahoopes Member Licensed User Jun 28, 2008 #4 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.
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.
Cableguy Expert Licensed User Longtime User Jun 28, 2008 #5 Found this on the web after a short search..
L Louis Active Member Licensed User Longtime User Jun 28, 2008 #6 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Jul 13, 2008 #8 Here: http://www.b4x.com/forum/official-updates/2661-fmod-library-v1-5-a.html#post14790
E esbenr New Member Nov 30, 2008 #10 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);
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);