Package org.sf.feeling.swt.win32.extension.graphics

Examples of org.sf.feeling.swt.win32.extension.graphics.GraphicsUtil


      return 0;
  }

  public static int getLeftChannelVolume(int deviceId, int srcType)
  {
    MIXERVOLUME volume = new MIXERVOLUME();
    if (Extension.GetPlaybackVolume(deviceId, srcType, volume, isMixerMono(deviceId)))
    {
      return volume.leftChannelVolume;
    }
    else
View Full Code Here


      return 0;
  }

  public static int getRightChannelVolume(int deviceId, int srcType)
  {
    MIXERVOLUME volume = new MIXERVOLUME();
    if (Extension.GetPlaybackVolume(deviceId, srcType, volume, isMixerMono(deviceId)))
    {
      return volume.rightChannelVolume;
    }
    else
View Full Code Here

      return 0;
  }

  public static int[] getPlaybackVolume(int deviceId, int srcType, boolean mono)
  {
    MIXERVOLUME volume = new MIXERVOLUME();
    if (Extension.GetPlaybackVolume(deviceId, srcType, volume, mono))
    {
      return new int[] { volume.leftChannelVolume, volume.rightChannelVolume };
    }
    else
View Full Code Here

    return new int[] { dwLeft, dwRight };
  }

  public static boolean setMasterLeftChannelVolume(int deviceId, int value)
  {
    MIXERVOLUME volume = new MIXERVOLUME();
    volume.leftChannelVolume = value;
    volume.rightChannelVolume = getMasterRightChannelVolume(deviceId);
    return Extension.SetPlaybackVolume(deviceId, TYPE_VOLUMECONTROL, volume,
        isMixerMono(deviceId));
  }
View Full Code Here

        isMixerMono(deviceId));
  }

  public static boolean setMasterRightChannelVolume(int deviceId, int value)
  {
    MIXERVOLUME volume = new MIXERVOLUME();
    volume.leftChannelVolume = getMasterLeftChannelVolume(deviceId);
    volume.rightChannelVolume = value;
    return Extension.SetPlaybackVolume(deviceId, TYPE_VOLUMECONTROL, volume,
        isMixerMono(deviceId));
  }
View Full Code Here

        isMixerMono(deviceId));
  }

  public static boolean setLeftChannelVolume(int deviceId, int srcType, int value)
  {
    MIXERVOLUME volume = new MIXERVOLUME();
    volume.leftChannelVolume = value;
    volume.rightChannelVolume = getMasterRightChannelVolume(deviceId);
    return Extension.SetPlaybackVolume(deviceId, srcType, volume, isMixerMono(deviceId));
  }
View Full Code Here

    return Extension.SetPlaybackVolume(deviceId, srcType, volume, isMixerMono(deviceId));
  }

  public static boolean setRightChannelVolume(int deviceId, int srcType, int value)
  {
    MIXERVOLUME volume = new MIXERVOLUME();
    volume.leftChannelVolume = getMasterLeftChannelVolume(deviceId);
    volume.rightChannelVolume = value;
    return Extension.SetPlaybackVolume(deviceId, srcType, volume, isMixerMono(deviceId));
  }
View Full Code Here

  }

  public static boolean setPlaybackVolume(int deviceId, int leftValue, int rightValue,
      int srcType, boolean mono)
  {
    MIXERVOLUME volume = new MIXERVOLUME();
    volume.leftChannelVolume = leftValue;
    volume.rightChannelVolume = rightValue;
    return Extension.SetPlaybackVolume(deviceId, srcType, volume, mono);
  }
View Full Code Here

  }

  public static boolean setRecordingVolume(int deviceId, int leftValue, int rightValue,
      int srcType, boolean mono)
  {
    MIXERVOLUME volume = new MIXERVOLUME();
    volume.leftChannelVolume = leftValue;
    volume.rightChannelVolume = rightValue;
    return Extension.SetRecordingVolume(deviceId, srcType, volume, mono);
  }
View Full Code Here

    return getRecordingVolume(deviceId, TYPE_MICROPHONE, isMixerMono(deviceId))[0];
  }

  public static int[] getRecordingVolume(int deviceId, int srcType, boolean mono)
  {
    MIXERVOLUME volume = new MIXERVOLUME();
    if (Extension.GetRecordingVolume(deviceId, srcType, volume, mono))
    {
      return new int[] { volume.leftChannelVolume, volume.rightChannelVolume };
    }
    else
View Full Code Here

TOP

Related Classes of org.sf.feeling.swt.win32.extension.graphics.GraphicsUtil

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.