javazoom.jl.decoder.Bitstream.close()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(100)

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

Bitstream.close介绍

[英]Close the Bitstream.
[中]关闭位流。

代码示例

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

public void reset () {
    if (bitstream == null) return;
    try {
      bitstream.close();
    } catch (BitstreamException ignored) {
    }
    bitstream = null;
  }
}

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

output.write(outputBuffer.getBuffer(), 0, outputBuffer.reset());
  bitstream.close();
  setup(output.toByteArray(), channels, sampleRate);
} catch (Throwable ex) {

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

output.write(outputBuffer.getBuffer(), 0, outputBuffer.reset());
  bitstream.close();
  setup(output.toByteArray(), channels, sampleRate);
} catch (Throwable ex) {

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

public void reset () {
    if (bitstream == null) return;
    try {
      bitstream.close();
    } catch (BitstreamException ignored) {
    }
    bitstream = null;
  }
}

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

output.write(outputBuffer.getBuffer(), 0, outputBuffer.reset());
  bitstream.close();
  setup(output.toByteArray(), channels, sampleRate);
} catch (Throwable ex) {

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

public void reset () {
    if (bitstream == null) return;
    try {
      bitstream.close();
    } catch (BitstreamException ignored) {
    }
    bitstream = null;
  }
}

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

output.write(outputBuffer.getBuffer(), 0, outputBuffer.reset());
  bitstream.close();
  setup(output.toByteArray(), channels, sampleRate);
} catch (Throwable ex) {

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

public void reset () {
    if (bitstream == null) return;
    try {
      bitstream.close();
    } catch (BitstreamException ignored) {
    }
    bitstream = null;
  }
}

代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl

output.write(outputBuffer.getBuffer(), 0, outputBuffer.reset());
  bitstream.close();
  setup(output.toByteArray(), channels, sampleRate);
} catch (Throwable ex) {

代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl

public void reset () {
    if (bitstream == null) return;
    try {
      bitstream.close();
    } catch (BitstreamException ignored) {
    }
    bitstream = null;
  }
}

代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl3

public void reset () {
    if (bitstream == null) return;
    try {
      bitstream.close();
    } catch (BitstreamException ignored) {
    }
    bitstream = null;
  }
}

代码示例来源:origin: com.googlecode.apparat/apparat-playerglobal

@Override
public synchronized void close() {
  try {
    _bitstream.close();
  } catch(final BitstreamException e) {
    //
    // Ignore exception.
    //
  }
}

代码示例来源:origin: org.mini2Dx/mini2Dx-desktop

public void reset () {
    if (bitstream == null) return;
    try {
      bitstream.close();
    } catch (BitstreamException ignored) {
    }
    bitstream = null;
  }
}

代码示例来源:origin: tulskiy/musique

public void close() {
  if (bitstream != null)
    bitstream.close();
  track.getTrackData().setBitrate(oldBitrate);
  readFrame = null;
}

代码示例来源:origin: javazoom/jlayer

/**
 * Cloases this player. Any audio currently playing is stopped
 * immediately. 
 */
public synchronized void close()
{        
  AudioDevice out = audio;
  if (out!=null)
  { 
    closed = true;
    audio = null;    
    // this may fail, so ensure object state is set up before
    // calling this method. 
    out.close();
    lastPosition = out.getPosition();
    try
    {
      bitstream.close();
    }
    catch (BitstreamException ex)
    {
    }
  }
}

代码示例来源:origin: com.googlecode.soundlibs/jlayer

/**
 * Cloases this player. Any audio currently playing is stopped
 * immediately.
 */
public synchronized void close()
{
  AudioDevice out = audio;
  if (out != null)
  {
    closed = true;
    audio = null;
    // this may fail, so ensure object state is set up before
    // calling this method.
    out.close();
    lastPosition = out.getPosition();
    try
    {
      bitstream.close();
    }
    catch (BitstreamException ex)
    {}
  }
}

代码示例来源:origin: javazoom/jlayer

/**
 * Cloases this player. Any audio currently playing is stopped
 * immediately.
 */
public synchronized void close()
{
  AudioDevice out = audio;
  if (out != null)
  {
    closed = true;
    audio = null;
    // this may fail, so ensure object state is set up before
    // calling this method.
    out.close();
    lastPosition = out.getPosition();
    try
    {
      bitstream.close();
    }
    catch (BitstreamException ex)
    {}
  }
}

代码示例来源:origin: pdudits/soundlibs

/**
 * Cloases this player. Any audio currently playing is stopped
 * immediately. 
 */
public synchronized void close()
{        
  AudioDevice out = audio;
  if (out!=null)
  { 
    closed = true;
    audio = null;    
    // this may fail, so ensure object state is set up before
    // calling this method. 
    out.close();
    lastPosition = out.getPosition();
    try
    {
      bitstream.close();
    }
    catch (BitstreamException ex)
    {
    }
  }
}

代码示例来源:origin: com.googlecode.soundlibs/jlayer

/**
 * Cloases this player. Any audio currently playing is stopped
 * immediately. 
 */
public synchronized void close()
{        
  AudioDevice out = audio;
  if (out!=null)
  { 
    closed = true;
    audio = null;    
    // this may fail, so ensure object state is set up before
    // calling this method. 
    out.close();
    lastPosition = out.getPosition();
    try
    {
      bitstream.close();
    }
    catch (BitstreamException ex)
    {
    }
  }
}

代码示例来源:origin: pdudits/soundlibs

/**
 * Cloases this player. Any audio currently playing is stopped
 * immediately.
 */
public synchronized void close()
{
  AudioDevice out = audio;
  if (out != null)
  {
    closed = true;
    audio = null;
    // this may fail, so ensure object state is set up before
    // calling this method.
    out.close();
    lastPosition = out.getPosition();
    try
    {
      bitstream.close();
    }
    catch (BitstreamException ex)
    {}
  }
}

相关文章