Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Basic4ppc Wishlist Missing any feature?

Volume control etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-26-2008, 12:40 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Volume control etc.

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
File Type: zip VolumeCtrl.zip (9.3 KB, 128 views)
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #2 (permalink)  
Old 06-12-2008, 11:53 PM
Junior Member
 
Join Date: Feb 2008
Posts: 47
Default 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.

Quote:
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.
Reply With Quote
  #3 (permalink)  
Old 06-27-2008, 09:59 AM
Standa's Avatar
Junior Member
 
Join Date: May 2007
Location: Czech Republic
Posts: 38
Send a message via MSN to Standa
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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?
__________________
BlackBerry 8900, Dell Streak, SE MBW-150
Reply With Quote
  #4 (permalink)  
Old 06-28-2008, 01:19 PM
Junior Member
 
Join Date: Feb 2008
Posts: 47
Default

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.
Reply With Quote
  #5 (permalink)  
Old 06-28-2008, 01:24 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Found this on the web after a short search..
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #6 (permalink)  
Old 06-28-2008, 06:29 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default

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.
Reply With Quote
  #7 (permalink)  
Old 07-12-2008, 03:06 PM
Junior Member
 
Join Date: Feb 2008
Posts: 47
Default

bump
Reply With Quote
  #8 (permalink)  
Old 07-13-2008, 06:01 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Here: http://www.basic4ppc.com/forum/offic...html#post14790
Reply With Quote
  #9 (permalink)  
Old 07-13-2008, 01:26 PM
Junior Member
 
Join Date: Feb 2008
Posts: 47
Default

Many thanks.
Reply With Quote
  #10 (permalink)  
Old 11-30-2008, 01:55 AM
Newbie
 
Join Date: Nov 2008
Posts: 1
Default

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);
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ringer volume and vibrate mode ikaplan Questions (Windows Mobile) 3 03-20-2012 06:26 AM
volume for speaker sloopa Basic4ppc Wishlist 1 05-04-2007 06:42 PM


All times are GMT. The time now is 11:10 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0