Examples of MIXERVOLUME


Examples of org.sf.feeling.swt.win32.internal.extension.MIXERVOLUME

            srcType, false);
      }
    }
    else
    {
      MIXERVOLUME volume = new MIXERVOLUME();
      volume.leftChannelVolume = value;
      return Extension.SetPlaybackVolume(deviceId, srcType, volume, true);
    }
  }
View Full Code Here

Examples of org.sf.feeling.swt.win32.internal.extension.MIXERVOLUME

    return getMixerLineChannels(deviceId, dstType, srcType) < 2;
  }

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

Examples of org.sf.feeling.swt.win32.internal.extension.MIXERVOLUME

      return 0;
  }

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

Examples of org.sf.feeling.swt.win32.internal.extension.MIXERVOLUME

      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

Examples of org.sf.feeling.swt.win32.internal.extension.MIXERVOLUME

      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

Examples of org.sf.feeling.swt.win32.internal.extension.MIXERVOLUME

      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

Examples of org.sf.feeling.swt.win32.internal.extension.MIXERVOLUME

    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

Examples of org.sf.feeling.swt.win32.internal.extension.MIXERVOLUME

        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

Examples of org.sf.feeling.swt.win32.internal.extension.MIXERVOLUME

        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

Examples of org.sf.feeling.swt.win32.internal.extension.MIXERVOLUME

    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
TOP
Copyright © 2018 www.massapi.com. 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.