当前位置: 首页>>代码示例>>Java>>正文


Java Decoder类代码示例

本文整理汇总了Java中javazoom.jl.decoder.Decoder的典型用法代码示例。如果您正苦于以下问题:Java Decoder类的具体用法?Java Decoder怎么用?Java Decoder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Decoder类属于javazoom.jl.decoder包,在下文中一共展示了Decoder类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Player

import javazoom.jl.decoder.Decoder; //导入依赖的package包/类
public Player(InputStream stream, AudioDevice device) throws JavaLayerException
{
	bitstream = new Bitstream(stream);
	decoder = new Decoder();

	if (device != null)
	{
		audio = device;
	}
	else
	{
		FactoryRegistry r = FactoryRegistry.systemRegistry();
		audio = r.createAudioDevice();
	}
	audio.open(decoder);
}
 
开发者ID:kuhnmi,项目名称:jukefox,代码行数:17,代码来源:Player.java

示例2: Player

import javazoom.jl.decoder.Decoder; //导入依赖的package包/类
public Player(InputStream stream, AudioDevice device) throws JavaLayerException
{
	bitstream = new Bitstream(stream);		
	decoder = new Decoder();
			
	if (device!=null)
	{		
		audio = device;
	}
	else
	{			
		FactoryRegistry r = FactoryRegistry.systemRegistry();
		audio = r.createAudioDevice();
	}
	audio.open(decoder);
}
 
开发者ID:EndlessBot,项目名称:jLib,代码行数:17,代码来源:Player.java

示例3: convert

import javazoom.jl.decoder.Decoder; //导入依赖的package包/类
public void convert(String sourceName, String destName,
	ProgressListener progressListener, Decoder.Params decoderParams)
	throws JavaLayerException
{
	if (destName.length()==0)
		destName = null;
	try {
		InputStream in = openInput(sourceName);
		convert(in, destName, progressListener, decoderParams);
		in.close();
	} catch(IOException ioe) {
		throw new JavaLayerException(ioe.getLocalizedMessage(), ioe);
	}
}
 
开发者ID:EndlessBot,项目名称:jLib,代码行数:15,代码来源:Converter.java

示例4: open

import javazoom.jl.decoder.Decoder; //导入依赖的package包/类
/**
 * Opens this audio device. 
 * 
 * @param decoder	The decoder that will provide audio data
 *					to this audio device. 
 */
public synchronized void open(Decoder decoder) throws JavaLayerException
{
	if (!isOpen())
	{
		this.decoder = decoder;
		openImpl();
		setOpen(true);
	}
}
 
开发者ID:EndlessBot,项目名称:jLib,代码行数:16,代码来源:AudioDeviceBase.java

示例5: AdvancedPlayer

import javazoom.jl.decoder.Decoder; //导入依赖的package包/类
public AdvancedPlayer(InputStream stream, AudioDevice device) throws JavaLayerException
{
	bitstream = new Bitstream(stream);

	if (device!=null) audio = device;
	else audio = FactoryRegistry.systemRegistry().createAudioDevice();
	audio.open(decoder = new Decoder());
}
 
开发者ID:EndlessBot,项目名称:jLib,代码行数:9,代码来源:AdvancedPlayer.java

示例6: getAudioFormat

import javazoom.jl.decoder.Decoder; //导入依赖的package包/类
protected AudioFormat getAudioFormat()
{
	if (fmt==null)
	{
		Decoder decoder = getDecoder();
		fmt = new AudioFormat(decoder.getOutputFrequency(),
							  16,
							  decoder.getOutputChannels(),
							  true,
							  false);
	}
	return fmt;
}
 
开发者ID:ANBAL534,项目名称:EORA,代码行数:14,代码来源:JavaSoundAudioDevice.java


注:本文中的javazoom.jl.decoder.Decoder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。