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

Examples of org.sf.feeling.swt.win32.extension.shell.Windows


  public static boolean mixerOpen(int hWnd, int deviceId)
  {
    int dwFlags = MIXER_OBJECTF_MIXER;
    if (hWnd != 0) dwFlags |= CALLBACK_WINDOW;
    MIXERHANDLE mixer = new MIXERHANDLE();
    boolean result = Extension.MixerOpen(mixer, deviceId, hWnd, 0, dwFlags) == MMSYSERR_NOERROR;
    if (result) mixerMap.put(new Integer(deviceId), new Integer(mixer.hMixer));
    return result;
  }
View Full Code Here


  public MixerLine()
  {
    if (Extension.IsUnicode) mixerLine = new MIXERLINEW();
    else
      mixerLine = new MIXERLINEA();
  };
View Full Code Here

  public String getSzShortName()
  {
    char[] chars;
    if (mixerLine instanceof MIXERLINEA)
    {
      MIXERLINEA mixerLineA = (MIXERLINEA) mixerLine;
      chars = new char[16];
      byte[] bytes = mixerLineA.szShortName;
      OS.MultiByteToWideChar(Extension.CP_ACP, Extension.MB_PRECOMPOSED, bytes,
          bytes.length, chars, chars.length);
    }
View Full Code Here

  public String getSzName()
  {
    char[] chars;
    if (mixerLine instanceof MIXERLINEA)
    {
      MIXERLINEA mixerLineA = (MIXERLINEA) mixerLine;
      chars = new char[64];
      byte[] bytes = mixerLineA.szName;
      OS.MultiByteToWideChar(Extension.CP_ACP, Extension.MB_PRECOMPOSED, bytes,
          bytes.length, chars, chars.length);
    }
View Full Code Here

    this.mixerLine = mixerLine;
  }

  public MixerLine()
  {
    if (Extension.IsUnicode) mixerLine = new MIXERLINEW();
    else
      mixerLine = new MIXERLINEA();
  };
View Full Code Here

      OS.MultiByteToWideChar(Extension.CP_ACP, Extension.MB_PRECOMPOSED, bytes,
          bytes.length, chars, chars.length);
    }
    else
    {
      MIXERLINEW mixerLineW = (MIXERLINEW) mixerLine;
      chars = mixerLineW.szShortName;
    }
    int index = 0;
    while (index < chars.length)
    {
View Full Code Here

      OS.MultiByteToWideChar(Extension.CP_ACP, Extension.MB_PRECOMPOSED, bytes,
          bytes.length, chars, chars.length);
    }
    else
    {
      MIXERLINEW mixerLineW = (MIXERLINEW) mixerLine;
      chars = mixerLineW.szName;
    }
    int index = 0;
    while (index < chars.length)
    {
View Full Code Here

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

    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

      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

TOP

Related Classes of org.sf.feeling.swt.win32.extension.shell.Windows

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.