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

x33g5p2x  于2022-01-20 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(138)

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

Header.getSampleRate介绍

暂无

代码示例

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
sampleRate = header.getSampleRate();

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
sampleRate = header.getSampleRate();

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
sampleRate = header.getSampleRate();

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
sampleRate = header.getSampleRate();

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

public Music (OpenALAudio audio, FileHandle file) {
  super(audio, file);
  if (audio.noDevice) return;
  bitstream = new Bitstream(file.read());
  decoder = new MP3Decoder();
  bufferOverhead = 4096;
  try {
    Header header = bitstream.readFrame();
    if (header == null) throw new GdxRuntimeException("Empty MP3");
    int channels = header.mode() == Header.SINGLE_CHANNEL ? 1 : 2;
    outputBuffer = new OutputBuffer(channels, false);
    decoder.setOutputBuffer(outputBuffer);
    setup(channels, header.getSampleRate());
  } catch (BitstreamException e) {
    throw new GdxRuntimeException("error while preloading mp3", e);
  }
}

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

public Music (OpenALAudio audio, FileHandle file) {
  super(audio, file);
  if (audio.noDevice) return;
  bitstream = new Bitstream(file.read());
  decoder = new MP3Decoder();
  bufferOverhead = 4096;
  try {
    Header header = bitstream.readFrame();
    if (header == null) throw new GdxRuntimeException("Empty MP3");
    int channels = header.mode() == Header.SINGLE_CHANNEL ? 1 : 2;
    outputBuffer = new OutputBuffer(channels, false);
    decoder.setOutputBuffer(outputBuffer);
    setup(channels, header.getSampleRate());
  } catch (BitstreamException e) {
    throw new GdxRuntimeException("error while preloading mp3", e);
  }
}

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

public Music (OpenALAudio audio, FileHandle file) {
  super(audio, file);
  if (audio.noDevice) return;
  bitstream = new Bitstream(file.read());
  decoder = new MP3Decoder();
  bufferOverhead = 4096;
  try {
    Header header = bitstream.readFrame();
    if (header == null) throw new GdxRuntimeException("Empty MP3");
    int channels = header.mode() == Header.SINGLE_CHANNEL ? 1 : 2;
    outputBuffer = new OutputBuffer(channels, false);
    decoder.setOutputBuffer(outputBuffer);
    setup(channels, header.getSampleRate());
  } catch (BitstreamException e) {
    throw new GdxRuntimeException("error while preloading mp3", e);
  }
}

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

public Music (OpenALAudio audio, FileHandle file) {
  super(audio, file);
  if (audio.noDevice) return;
  bitstream = new Bitstream(file.read());
  decoder = new MP3Decoder();
  bufferOverhead = 4096;
  try {
    Header header = bitstream.readFrame();
    if (header == null) throw new GdxRuntimeException("Empty MP3");
    int channels = header.mode() == Header.SINGLE_CHANNEL ? 1 : 2;
    outputBuffer = new OutputBuffer(channels, false);
    decoder.setOutputBuffer(outputBuffer);
    setup(channels, header.getSampleRate());
  } catch (BitstreamException e) {
    throw new GdxRuntimeException("error while preloading mp3", e);
  }
}

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
setup(channels, header.getSampleRate());
setup = false;

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
setup(channels, header.getSampleRate());
setup = false;

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
setup(channels, header.getSampleRate());
setup = false;

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
setup(channels, header.getSampleRate());
setup = false;

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
sampleRate = header.getSampleRate();

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
sampleRate = header.getSampleRate();

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
sampleRate = header.getSampleRate();

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

public Music (OpenALAudio audio, FileHandle file) {
  super(audio, file);
  if (audio.noDevice) return;
  bitstream = new Bitstream(file.read());
  decoder = new MP3Decoder();
  bufferOverhead = 4096;
  try {
    Header header = bitstream.readFrame();
    if (header == null) throw new GdxRuntimeException("Empty MP3");
    int channels = header.mode() == Header.SINGLE_CHANNEL ? 1 : 2;
    outputBuffer = new OutputBuffer(channels, false);
    decoder.setOutputBuffer(outputBuffer);
    setup(channels, header.getSampleRate());
  } catch (BitstreamException e) {
    throw new GdxRuntimeException("error while preloading mp3", e);
  }
}

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

public Music (OpenALAudio audio, FileHandle file) {
  super(audio, file);
  if (audio.noDevice) return;
  bitstream = new Bitstream(file.read());
  decoder = new MP3Decoder();
  bufferOverhead = 4096;
  try {
    Header header = bitstream.readFrame();
    if (header == null) throw new GdxRuntimeException("Empty MP3");
    int channels = header.mode() == Header.SINGLE_CHANNEL ? 1 : 2;
    outputBuffer = new OutputBuffer(channels, false);
    decoder.setOutputBuffer(outputBuffer);
    setup(channels, header.getSampleRate());
  } catch (BitstreamException e) {
    throw new GdxRuntimeException("error while preloading mp3", e);
  }
}

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

public Music (Mini2DxOpenALAudio audio, FileHandle file) {
  super(audio, file);
  if (audio.noDevice) return;
  bitstream = new Bitstream(file.read());
  decoder = new MP3Decoder();
  bufferOverhead = 4096;
  try {
    Header header = bitstream.readFrame();
    if (header == null) throw new GdxRuntimeException("Empty MP3");
    int channels = header.mode() == Header.SINGLE_CHANNEL ? 1 : 2;
    outputBuffer = new OutputBuffer(channels, false);
    decoder.setOutputBuffer(outputBuffer);
    setup(channels, header.getSampleRate());
  } catch (BitstreamException e) {
    throw new GdxRuntimeException("error while preloading mp3", e);
  }
}

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
setup(channels, header.getSampleRate());
setup = false;

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

outputBuffer = new OutputBuffer(channels, false);
decoder.setOutputBuffer(outputBuffer);
setup(channels, header.getSampleRate());
setup = false;

相关文章