javax.sound.sampled.Clip.flush()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(172)

本文整理了Java中javax.sound.sampled.Clip.flush()方法的一些代码示例,展示了Clip.flush()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Clip.flush()方法的具体详情如下:
包路径:javax.sound.sampled.Clip
类名称:Clip
方法名:flush

Clip.flush介绍

暂无

代码示例

代码示例来源:origin: marytts/marytts

/**
 * Stop wav play back
 * 
 */
public static void stopWavFile() {
  m_clip.stop();
  m_clip.flush();
  m_clip.close();
}

代码示例来源:origin: marytts/marytts

/**
 * Stop wav play back
 * 
 */
public static void stopWavFile() {
  m_clip.stop();
  m_clip.flush();
  m_clip.close();
}

代码示例来源:origin: threerings/playn

@Override
protected void stopImpl() {
 impl.stop();
 impl.flush();
}

代码示例来源:origin: playn/playn

@Override
protected void stopImpl() {
 impl.stop();
 impl.flush();
}

代码示例来源:origin: com.googlecode.playn/playn-java

@Override
protected void stopImpl() {
 impl.stop();
 impl.flush();
}

代码示例来源:origin: io.playn/playn-java-base

@Override
protected void stopImpl() {
 impl.stop();
 impl.flush();
}

代码示例来源:origin: blurpy/kouchat

/**
 * Closes the audio file and frees the resources used.
 */
public void close() {
  if (audioClip != null) {
    audioClip.flush();
    audioClip.close();
    audioClip = null;
  }
}

代码示例来源:origin: org.jvnet.hudson/netx

/**
 * Stops playing the clip and disposes it; the clip cannot be
 * played after being disposed.
 */
void dispose() {
  if (clip != null) {
    clip.stop();
    clip.flush();
    clip.close();
  }
  clip = null;
}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

public void interrompe(boolean fechaClip)
  {
    if (clip == null)
    {
      return;
    }
    clip.stop();
    clip.flush();
    if (fechaClip)
    {
      clip.close();
    }
  }
}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

public void pausa(boolean fechaClip)
{
  if (clip == null)
  {
    return;
  }
  clipTime=clip.getMicrosecondPosition();
  clip.stop();
  clip.flush();
  if (fechaClip)
  {
    clip.close();
  }
}

代码示例来源:origin: com.github.nifty-gui/nifty-pauls-soundsystem

/**
 * Stops the channel, dequeues any queued data, and closes the channel.
 */
  @Override
  public void close()
  {
    switch( channelType )
    {
      case SoundSystemConfig.TYPE_NORMAL:
        if( clip != null )
        {
          clip.stop();
          clip.flush();
          clip.close();
        }
        break;
      case SoundSystemConfig.TYPE_STREAMING:
        if( sourceDataLine != null )
        {
          flush();
          sourceDataLine.close();
        }
        break;
      default:
        break;
    }
  }

代码示例来源:origin: com.github.nifty-gui/nifty-pauls-soundsystem

clip.flush();
clip.close();

相关文章