Home | History | Annotate | Download | only in plugins
      1 package com.jme3.audio.plugins;
      2 
      3 import com.jme3.asset.AssetInfo;
      4 import com.jme3.asset.AssetLoader;
      5 import com.jme3.audio.android.AndroidAudioData;
      6 import java.io.IOException;
      7 
      8 /**
      9  * <code>AndroidAudioLoader</code> will create an
     10  * {@link AndroidAudioData} object with the specified asset key.
     11  */
     12 public class AndroidAudioLoader implements AssetLoader {
     13 
     14     @Override
     15     public Object load(AssetInfo assetInfo) throws IOException {
     16         AndroidAudioData result = new AndroidAudioData();
     17         result.setAssetKey(assetInfo.getKey());
     18         return result;
     19     }
     20 }
     21