Пример #1
0
 public SoundResource(GameActivity game) {
   _game = game;
   SoundFactory.setAssetBasePath("mfx/");
   SoundManager sm = _game.getEngine().getSoundManager();
   try {
     MOVE = SoundFactory.createSoundFromAsset(sm, _game, "click_move.ogg");
     DROP = SoundFactory.createSoundFromAsset(sm, _game, "group.ogg");
     DROP6 = SoundFactory.createSoundFromAsset(sm, _game, "group6.ogg");
     TIME = SoundFactory.createSoundFromAsset(sm, _game, "time.ogg");
     TACK = SoundFactory.createSoundFromAsset(sm, _game, "tack.ogg");
     SLIDE = SoundFactory.createSoundFromAsset(sm, _game, "slide.ogg");
     LOST = SoundFactory.createSoundFromAsset(sm, _game, "lost.ogg");
     WOOSH = SoundFactory.createSoundFromAsset(sm, _game, "woosh.ogg");
   } catch (final IOException e) {
     throw new RuntimeException(e);
   }
 }