Class AudioFileLoader

java.lang.Object
com.realtime.crossfire.jxclient.sound.AudioFileLoader

public class AudioFileLoader extends Object
Locates audio files.
  • Constructor Details

    • AudioFileLoader

      public AudioFileLoader(@Nullable @Nullable DebugWriter debugSound)
      Private constructor to prevent instantiation.
      Parameters:
      debugSound - the writer for logging sound related information or null to not log
  • Method Details

    • getInputStream

      @NotNull public @NotNull InputStream getInputStream(@NotNull @NotNull CharSequence name) throws IOException
      Returns an input stream for an audio file. action identifies the audio file. name is an optional prefix.
      Parameters:
      name - the name
      Returns:
      the input stream
      Throws:
      IOException - if the file cannot be located