void UpdateVolume()
    {
        float volume = SystemVolumePlugin.GetVolume() * 100;

        if (prevVolume == volume)
        {
            return;
        }
        prevVolume = volume;

        Dictionary <string, string> data = new Dictionary <string, string>();

        data["volume"] = volume.ToString();
        socketIO.Emit(MS_CLIENT_TO_SERVER.UPDATE_VOLUME, new JSONObject(data));
    }
 public void DownVolume(SocketIOEvent socketIOEvent)
 {
     SystemVolumePlugin.SetVolume(SystemVolumePlugin.GetVolume() - 0.02f);
 }
 public void UpVolume(SocketIOEvent socketIOEvent)
 {
     SystemVolumePlugin.SetVolume(SystemVolumePlugin.GetVolume() + 0.02f);
 }