本文整理汇总了Java中paulscode.sound.codecs.CodecWav类的典型用法代码示例。如果您正苦于以下问题:Java CodecWav类的具体用法?Java CodecWav怎么用?Java CodecWav使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CodecWav类属于paulscode.sound.codecs包,在下文中一共展示了CodecWav类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SoundManager
import paulscode.sound.codecs.CodecWav; //导入依赖的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();
}
示例2: SoundManager
import paulscode.sound.codecs.CodecWav; //导入依赖的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();
}
示例3: onSoundLoad
import paulscode.sound.codecs.CodecWav; //导入依赖的package包/类
@SubscribeEvent
public void onSoundLoad(SoundSetupEvent event)
{
try
{
SoundSystemConfig.setCodec("wav", CodecWav.class);
SoundSystemConfig.setCodec("mp3", CodecJLayerMP3.class);
} catch (SoundSystemException e)
{
e.printStackTrace();
}
}
示例4: main
import paulscode.sound.codecs.CodecWav; //导入依赖的package包/类
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
SoundSystemConfig.addLibrary(LibraryJavaSound.class);
SoundSystemConfig.setCodec("wav", CodecWav.class);
SoundSystem ss = new SoundSystem(LibraryJavaSound.class);
new GitHubNotifier(ss);
} catch (Exception e) {
e.printStackTrace();
}
}
示例5: create
import paulscode.sound.codecs.CodecWav; //导入依赖的package包/类
public static void create(){
try {
SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class);
SoundSystemConfig.setCodec("wav", CodecWav.class);
system = new SoundSystem(LibraryLWJGLOpenAL.class);
}catch(Exception e){
e.printStackTrace();
System.exit(0);
}
}