Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++

How to control “the system audio volume” of iOS

Author: h.mohri

Use C++Builder 10.2 to control audio volume of iOS.
I used the MPVolumeView class of iOS.
The MPVolumeView class is declared in “iOSapi.MediaPlayer.hpp”.

Include two files.

Form design

Arrange “Up” and “Down” two TButton. Use this button to control the volume.

f:id:mojeld:20170905181055p:plain

Add MPVolumeView to the main form Class

Add “_di_MPVolumeView” and “_di_UISlider” to the form class.

Main Form constructor

Code of volume down button

Code of volume up button

Execute the program.


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Related posts
C++Code

2021 Annual C++ Developer Survey "Lite" by ISOCpp.org - Results summary

C++

High-Performance C++ NMEA Parser GPS Interface

News

Using a Common C++ Library with C++Builder and TwineCompile

C++Delphi

Robust Asynchronous Serial Communications Library - Delphi & C++ Builder

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES