public class AudioManager extends Object
Constructor and Description |
---|
AudioManager() |
Modifier and Type | Method and Description |
---|---|
static int |
getCurrentVolume()
Returns the current volume between 0 and maximum volume.
|
static int |
getMaxVolume()
Returns the maximum volume.
|
static void |
setVolume(int volume)
Set the current volume with value between 0 and maximum volume.
|
public static int getMaxVolume()
public static int getCurrentVolume()
getMaxVolume()
public static void setVolume(int volume) throws IOException
volume
- the new volumeIOException
- if an I/O error occurs.