Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bbrosemer

macrumors 6502a
Original poster
Jan 28, 2006
639
3
Does anyone know a way to link a UIPickerView with Volume Control of the device?
 

Pring

macrumors 6502
Sep 17, 2003
310
0
It's not possible with the official APIs. The only way to control the actual device volume is MPVolumeView.
 

bbrosemer

macrumors 6502a
Original poster
Jan 28, 2006
639
3
It's not possible with the official APIs. The only way to control the actual device volume is MPVolumeView.

Ugh .... so is there a way to at least control my app's volume rather then the hardware itself... I know or I think you can while a sound is playing but can I change it pre a sound playing.
 

Pring

macrumors 6502
Sep 17, 2003
310
0
Yeah, you can do that. Depends how you're playing your sounds but there should be a method for setting the 'gain'. Use that to control volume.
 

bbrosemer

macrumors 6502a
Original poster
Jan 28, 2006
639
3
Instead of that hassle what i decided to do was make 30 copies of the file with each varying sound levels... luckily the file was small so I load them into memory when they get called rather then as the app is loading ... So it works fine with no lag ...
 

dejo

Moderator emeritus
Sep 2, 2004
15,982
452
The Centennial State
Instead of that hassle what i decided to do was make 30 copies of the file with each varying sound levels... luckily the file was small so I load them into memory when they get called rather then as the app is loading ... So it works fine with no lag ...
So, you have a volume control, via UIPickerView, with 30 distinct volume settings?
 

bbrosemer

macrumors 6502a
Original poster
Jan 28, 2006
639
3
So, you have a volume control, via UIPickerView, with 30 distinct volume settings?

Sorta I took a short sound .. which I wanted to vary the volume and whenever a different row in the picker is selected it chooses the sound that correlates to the volume i wanted aka I made the 30 sounds have different DB levels. Aka it is more of a pseudo way of doing volume control. Not how I wanted to do it but luckily since the sound file is small it works fine and without delay.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.