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


Java CodecWav类代码示例

本文整理汇总了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();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:20,代码来源:SoundManager.java

示例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();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:25,代码来源:SoundManager.java

示例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();
    }
}
 
开发者ID:Dynious,项目名称:SoundsCool,代码行数:13,代码来源:SoundEventHandler.java

示例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();
	}
}
 
开发者ID:Dakror,项目名称:GitHubNotifier,代码行数:12,代码来源:GitHubNotifier.java

示例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);
        }

    }
 
开发者ID:CryoGenesis,项目名称:GGU,代码行数:16,代码来源:AudioManager.java


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