Sound
Tizen enables you to control the volume level of several sound types and get information about the current sound mode and the state of the current sound devices. The available sound types include, for example, system, notifications, alarms, and media.
The Sound API is mandatory for both Tizen mobile and wearable profiles, which means that it is supported in all mobile and wearable devices. All mandatory APIs are supported on the Tizen Emulators.
The main features of the Sound API include:
- Setting the volume level
You can set the volume level of a specific sound type with the setVolume() method.
- Getting the sound mode
You can retrieve the current sound mode with the getSoundMode() method.
- Getting a list of the current sound devices in a specified state
You can retrieve a list of the current sound devices which are in a specified state by using the getConnectedDeviceList() or getActivatedDeviceList() methods.
- Monitoring changes in the volume level and sound mode
You can monitor changes in the volume level and sound mode by registering appropriate listeners.
- Monitoring changes in the sound device state
You can monitor changes in the state of sound devices with the addDeviceStateChangeListener() method.