Some iPhone apps like Pandora seem to directly manipulate the hardware volume and respond to the physical volume button. How it's done?
AudioSessionServices allows you to get the current amount of hardware output with the kAudioSessionProperty_CurrentHardwareOutputVolume property, but it is (supposedly) read-only.
iphone cocoa-touch audio volume
amrox Oct 18 '08 at 20:12 2008-10-18 20:12
source share