Hi all,
I'm finetuning my test application to the dots on the i's.
As for an button test, I also use the AVSystemController to check what happens with the volume. If it goes up, the volume up button has been pressed, if down, down button.
For now, I first have to set the volume to compare it with.
I would like to know how to get the current volume of the device (hardware) not software.
MPMusicPlayerController gives me the software volume back. Instead of the hardware volume.
Anyone have an idea ?
This gives me the current changed hardware volume level:
But only as one button gets pressed.
I'm finetuning my test application to the dots on the i's.
As for an button test, I also use the AVSystemController to check what happens with the volume. If it goes up, the volume up button has been pressed, if down, down button.
For now, I first have to set the volume to compare it with.
I would like to know how to get the current volume of the device (hardware) not software.
MPMusicPlayerController gives me the software volume back. Instead of the hardware volume.
Anyone have an idea ?
This gives me the current changed hardware volume level:
But only as one button gets pressed.
Code:
float volume = [[[notification userInfo] objectForKey:@"AVSystemController_AudioVolumeNotificationParameter"] floatValue];
Last edited: