本文整理汇总了Java中paulscode.sound.codecs.CodecJOrbis类的典型用法代码示例。如果您正苦于以下问题:Java CodecJOrbis类的具体用法?Java CodecJOrbis怎么用?Java CodecJOrbis使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CodecJOrbis类属于paulscode.sound.codecs包,在下文中一共展示了CodecJOrbis类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SoundManager
import paulscode.sound.codecs.CodecJOrbis; //导入依赖的package包/类
public SoundManager(SoundHandler p_i45119_1_, GameSettings p_i45119_2_)
{
this.invPlayingSounds = ((BiMap)this.playingSounds).inverse();
this.playingSoundPoolEntries = Maps.<ISound, SoundPoolEntry>newHashMap();
this.categorySounds = HashMultimap.<SoundCategory, String>create();
this.tickableSounds = Lists.<ITickableSound>newArrayList();
this.delayedSounds = Maps.<ISound, Integer>newHashMap();
this.playingSoundsStopTime = Maps.<String, Integer>newHashMap();
this.sndHandler = p_i45119_1_;
this.options = p_i45119_2_;
try
{
SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class);
SoundSystemConfig.setCodec("ogg", CodecJOrbis.class);
}
catch (SoundSystemException soundsystemexception)
{
logger.error(LOG_MARKER, (String)"Error linking with the LibraryJavaSound plug-in", (Throwable)soundsystemexception);
}
}
示例2: SoundManager
import paulscode.sound.codecs.CodecJOrbis; //导入依赖的package包/类
public SoundManager(SoundHandler p_i45119_1_, GameSettings p_i45119_2_)
{
this.invPlayingSounds = ((BiMap)this.playingSounds).inverse();
this.categorySounds = HashMultimap.<SoundCategory, String>create();
this.tickableSounds = Lists.<ITickableSound>newArrayList();
this.delayedSounds = Maps.<ISound, Integer>newHashMap();
this.playingSoundsStopTime = Maps.<String, Integer>newHashMap();
this.listeners = Lists.<ISoundEventListener>newArrayList();
this.pausedChannels = Lists.<String>newArrayList();
this.sndHandler = p_i45119_1_;
this.options = p_i45119_2_;
try
{
SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class);
SoundSystemConfig.setCodec("ogg", CodecJOrbis.class);
}
catch (SoundSystemException soundsystemexception)
{
LOGGER.error(LOG_MARKER, (String)"Error linking with the LibraryJavaSound plug-in", (Throwable)soundsystemexception);
}
}
示例3: SoundManager
import paulscode.sound.codecs.CodecJOrbis; //导入依赖的package包/类
public SoundManager(SoundHandler p_i45119_1_, GameSettings p_i45119_2_)
{
this.invPlayingSounds = ((BiMap)this.playingSounds).inverse();
this.categorySounds = HashMultimap.<SoundCategory, String>create();
this.tickableSounds = Lists.<ITickableSound>newArrayList();
this.delayedSounds = Maps.<ISound, Integer>newHashMap();
this.playingSoundsStopTime = Maps.<String, Integer>newHashMap();
this.listeners = Lists.<ISoundEventListener>newArrayList();
this.pausedChannels = Lists.<String>newArrayList();
this.sndHandler = p_i45119_1_;
this.options = p_i45119_2_;
try
{
SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class);
SoundSystemConfig.setCodec("ogg", CodecJOrbis.class);
net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.client.event.sound.SoundSetupEvent(this));
}
catch (SoundSystemException soundsystemexception)
{
LOGGER.error(LOG_MARKER, (String)"Error linking with the LibraryJavaSound plug-in", (Throwable)soundsystemexception);
}
}
示例4: init
import paulscode.sound.codecs.CodecJOrbis; //导入依赖的package包/类
public static void init() {
SoundSystemConfig.setLogger(new NoLogger());
try {
addLibrary(LibraryJavaSound.class);
setCodec("ogg", CodecJOrbis.class);
} catch (SoundSystemException e) {
e.printStackTrace();
}
soundSystem = new SoundSystem();
//Quellen für jeden Sound
register("buttonclick", "sounds/buttonclick.ogg", "buttonclick.ogg");
register("sword_attack", "sounds/sword_attack.ogg", "sword_attack.ogg");
register("hit", "sounds/hit.ogg", "hit.ogg");
register("cross", "sounds/cross.ogg", "cross.ogg");
register("death", "sounds/death.ogg", "death.ogg");
register("victory", "sounds/victory.ogg", "victory.ogg");
}
示例5: SoundManager
import paulscode.sound.codecs.CodecJOrbis; //导入依赖的package包/类
public SoundManager(SoundHandler p_i45119_1_, GameSettings p_i45119_2_)
{
this.field_148630_i = ((BiMap)this.field_148629_h).inverse();
this.field_148627_j = Maps.newHashMap();
this.field_148628_k = HashMultimap.create();
this.field_148625_l = Lists.newArrayList();
this.field_148626_m = Maps.newHashMap();
this.field_148624_n = Maps.newHashMap();
this.field_148622_c = p_i45119_1_;
this.field_148619_d = p_i45119_2_;
try
{
SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class);
SoundSystemConfig.setCodec("ogg", CodecJOrbis.class);
}
catch (SoundSystemException var4)
{
logger.error(field_148623_a, "Error linking with the LibraryJavaSound plug-in", var4);
}
}
示例6: SoundManager
import paulscode.sound.codecs.CodecJOrbis; //导入依赖的package包/类
public SoundManager(SoundHandler p_i45119_1_, GameSettings p_i45119_2_)
{
this.invPlayingSounds = ((BiMap)this.playingSounds).inverse();
this.playingSoundPoolEntries = Maps.newHashMap();
this.categorySounds = HashMultimap.create();
this.tickableSounds = Lists.newArrayList();
this.delayedSounds = Maps.newHashMap();
this.playingSoundsStopTime = Maps.newHashMap();
this.sndHandler = p_i45119_1_;
this.options = p_i45119_2_;
try
{
SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class);
SoundSystemConfig.setCodec("ogg", CodecJOrbis.class);
MinecraftForge.EVENT_BUS.post(new SoundSetupEvent(this));
}
catch (SoundSystemException soundsystemexception)
{
logger.error(field_148623_a, "Error linking with the LibraryJavaSound plug-in", soundsystemexception);
}
}
示例7: SoundManager
import paulscode.sound.codecs.CodecJOrbis; //导入依赖的package包/类
public SoundManager(ResourceManager p_i1326_1_, GameSettings p_i1326_2_, File p_i1326_3_) {
this.field_77383_i = this.field_77382_h.nextInt(12000);
this.field_77375_f = p_i1326_2_;
this.field_130085_i = p_i1326_3_;
this.field_77379_b = new SoundPool(p_i1326_1_, "sound", true);
this.field_77380_c = new SoundPool(p_i1326_1_, "records", false);
this.field_77377_d = new SoundPool(p_i1326_1_, "music", true);
try {
SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class);
SoundSystemConfig.setCodec("ogg", CodecJOrbis.class);
SoundSystemConfig.setCodec("wav", CodecWav.class);
} catch (SoundSystemException var5) {
var5.printStackTrace();
System.err.println("error linking with the LibraryJavaSound plug-in");
}
this.func_130083_h();
}
示例8: SoundManager
import paulscode.sound.codecs.CodecJOrbis; //导入依赖的package包/类
public SoundManager(ResourceManager par1ResourceManager, GameSettings par2GameSettings, File par3File)
{
this.ticksBeforeMusic = this.rand.nextInt(MUSIC_INTERVAL);
this.options = par2GameSettings;
this.fileAssets = par3File;
this.soundPoolSounds = new SoundPool(par1ResourceManager, "sound", true);
this.soundPoolStreaming = new SoundPool(par1ResourceManager, "records", false);
this.soundPoolMusic = new SoundPool(par1ResourceManager, "music", true);
try
{
SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class);
SoundSystemConfig.setCodec("ogg", CodecJOrbis.class);
SoundSystemConfig.setCodec("wav", CodecWav.class);
MinecraftForge.EVENT_BUS.post(new SoundSetupEvent(this));
}
catch (SoundSystemException soundsystemexception)
{
soundsystemexception.printStackTrace();
System.err.println("error linking with the LibraryJavaSound plug-in");
}
this.loadSounds();
}