本文整理了Java中com.jcraft.jorbis.Block
类的一些代码示例,展示了Block
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block
类的具体详情如下:
包路径:com.jcraft.jorbis.Block
类名称:Block
暂无
代码示例来源:origin: MovingBlocks/Terasology
block.init(dspState); // local state for most of the decode
代码示例来源:origin: libgdx/libgdx
if (vorbisBlock.synthesis(packet) == 0) { // test for success!
dspState.synthesis_blockin(vorbisBlock);
vorbisBlock.clear();
dspState.clear();
代码示例来源:origin: tulskiy/musique
Comment vc = new Comment(); // struct that stores all the bitstream user comments
DspState vd = new DspState(); // central working state for the packet->PCM decoder
Block vb = new Block(vd); // local working space for packet->PCM decode
vb.init(vd); // local state for most of the decode
if (vb.synthesis(op) == 0) { // test for success!
vd.synthesis_blockin(vb);
vb.clear();
vd.clear();
代码示例来源:origin: com.github.bloodshura/shurax-assets-ext
vb.init(vd);
if (vb.synthesis(op) == 0) { // test for
vb.clear();
vd.clear();
vi.clear();
代码示例来源:origin: MovingBlocks/Terasology
if (block.synthesis(packet) == 0) {
dspState.synthesis_blockin(block);
代码示例来源:origin: com.github.nifty-gui/nifty-pauls-soundsystem
joggStreamState.clear();
if( jorbisBlock != null )
jorbisBlock.clear();
if( jorbisDspState != null )
jorbisDspState.clear();
jorbisBlock = new Block(jorbisDspState);
jorbisDspState = new DspState();
jorbisInfo = new Info();
jorbisBlock.init( jorbisDspState );
代码示例来源:origin: org.jcraft/jorbis
void decode_clear(){
os.clear();
vd.clear();
vb.clear();
decode_ready=false;
bittrack=0.f;
samptrack=0.f;
}
代码示例来源:origin: com.github.bloodshura/shurax-assets-ext
private void initJOrbis() {
oy = new SyncState();
os = new StreamState();
og = new Page();
op = new Packet();
vi = new Info();
vc = new Comment();
vd = new DspState();
vb = new Block(vd);
buffer = null;
bytes = 0;
oy.init();
}
代码示例来源:origin: com.googlecode.soundlibs/jorbis
Comment vc=new Comment(); // struct that stores all the bitstream user comments
DspState vd=new DspState(); // central working state for the packet->PCM decoder
Block vb=new Block(vd); // local working space for packet->PCM decode
vb.init(vd); // local state for most of the decode
if(vb.synthesis(op)==0){ // test for success!
vd.synthesis_blockin(vb);
vb.clear();
vd.clear();
代码示例来源:origin: com.threerings/nenya
/**
* Reads a buffer's worth of samples.
*
* @return the number of samples read, or zero if we've reached the end of the stream.
*/
protected int readSamples ()
throws IOException
{
int samples;
while ((samples = _dsp.synthesis_pcmout(_pcm, _offsets)) <= 0) {
if (samples == 0 && !readPacket()) {
return 0;
}
if (_block.synthesis(_packet) == 0) {
_dsp.synthesis_blockin(_block);
}
}
return samples;
}
代码示例来源:origin: com.googlecode.soundlibs/jorbis
void decode_clear(){
os.clear();
vd.clear();
vb.clear();
decode_ready=false;
bittrack=0.f;
samptrack=0.f;
}
代码示例来源:origin: com.googlecode.soundlibs/vorbisspi
/**
* Initializes all the jOrbis and jOgg vars that are used for song playback.
*/
private void init_jorbis()
{
oggSyncState_ = new SyncState();
oggStreamState_ = new StreamState();
oggPage_ = new Page();
oggPacket_ = new Packet();
vorbisInfo = new Info();
vorbisComment = new Comment();
vorbisDspState = new DspState();
vorbisBlock = new Block(vorbisDspState);
buffer = null;
bytes = 0;
oggSyncState_.init();
}
}
代码示例来源:origin: com.github.nifty-gui/nifty-pauls-soundsystem
Comment vc=new Comment(); // struct that stores all the bitstream user comments
DspState vd=new DspState(); // central working state for the packet->PCM decoder
Block vb=new Block(vd); // local working space for packet->PCM decode
vb.init(vd); // local state for most of the decode
if(vb.synthesis(op)==0){ // test for success!
vd.synthesis_blockin(vb);
vb.clear();
vd.clear();
代码示例来源:origin: libgdx/libgdx
if (vorbisBlock.synthesis(packet) == 0) { // test for success!
dspState.synthesis_blockin(vorbisBlock);
vorbisBlock.clear();
dspState.clear();
代码示例来源:origin: libgdx/libgdx
vorbisBlock.init(dspState); // local state for most of the decode
代码示例来源:origin: threerings/nenya
/**
* Reads a buffer's worth of samples.
*
* @return the number of samples read, or zero if we've reached the end of the stream.
*/
protected int readSamples ()
throws IOException
{
int samples;
while ((samples = _dsp.synthesis_pcmout(_pcm, _offsets)) <= 0) {
if (samples == 0 && !readPacket()) {
return 0;
}
if (_block.synthesis(_packet) == 0) {
_dsp.synthesis_blockin(_block);
}
}
return samples;
}
代码示例来源:origin: com.github.nifty-gui/nifty-pauls-soundsystem
void decode_clear(){
os.clear();
vd.clear();
vb.clear();
decode_ready=false;
bittrack=0.f;
samptrack=0.f;
}
代码示例来源:origin: com.googlecode.soundlibs/vorbisspi
/**
* Initializes all the jOrbis and jOgg vars that are used for song playback.
*/
private void init_jorbis()
{
oggSyncState_ = new SyncState();
oggStreamState_ = new StreamState();
oggPage_ = new Page();
oggPacket_ = new Packet();
vorbisInfo = new Info();
vorbisComment = new Comment();
vorbisDspState = new DspState();
vorbisBlock = new Block(vorbisDspState);
buffer = null;
bytes = 0;
currentBytes = 0L;
oggSyncState_.init();
}
代码示例来源:origin: radzio/AndroidOggStreamPlayer
Comment vc=new Comment(); // struct that stores all the bitstream user comments
DspState vd=new DspState(); // central working state for the packet->PCM decoder
Block vb=new Block(vd); // local working space for packet->PCM decode
vb.init(vd); // local state for most of the decode
if(vb.synthesis(op)==0){ // test for success!
vd.synthesis_blockin(vb);
vb.clear();
vd.clear();
代码示例来源:origin: libgdx/libgdx
if (vorbisBlock.synthesis(packet) == 0) { // test for success!
dspState.synthesis_blockin(vorbisBlock);
vorbisBlock.clear();
dspState.clear();
内容来源于网络,如有侵权,请联系作者删除!