SoundClient.java :  » Game » aetheria » eu » irreality » age » Java Open Source

Java Open Source » Game » aetheria 
aetheria » eu » irreality » age » SoundClient.java
/*
 * (c) 2000-2009 Carlos Gmez Rodrguez, todos los derechos reservados / all rights reserved.
 * Licencia en license/bsd.txt / License in license/bsd.txt
 */
package eu.irreality.age;

import java.io.File;
import java.io.IOException;
import java.net.URL;

import javax.sound.midi.MidiUnavailableException;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.UnsupportedAudioFileException;


public interface SoundClient
{

  public void midiInit ( ) throws javax.sound.midi.MidiUnavailableException;
  //public void midiPreload ( java.io.File midfile ) throws javax.sound.midi.InvalidMidiDataException , java.io.IOException;  
  public void midiPreload ( String f ) throws javax.sound.midi.InvalidMidiDataException , java.io.IOException;
  //public void midiStart ( java.io.File midfile ) throws javax.sound.midi.InvalidMidiDataException , java.io.IOException;
  public void midiStart ( String f ) throws javax.sound.midi.InvalidMidiDataException , java.io.IOException, MidiUnavailableException;  
  public void midiStart ( ) throws javax.sound.midi.InvalidMidiDataException, MidiUnavailableException;
  public void midiLoop ( ) throws javax.sound.midi.InvalidMidiDataException;
  public void midiLoop ( int loopCount ) throws javax.sound.midi.InvalidMidiDataException;
  //public void midiOpen ( java.io.File midfile ) throws javax.sound.midi.InvalidMidiDataException , java.io.IOException;
  public void midiOpen ( String f ) throws javax.sound.midi.InvalidMidiDataException , java.io.IOException;  
  public void midiStop ( );
  public void midiClose ( );
  //public void midiUnload ( java.io.File midfile ) throws java.io.IOException;
  public void midiUnload ( String s ) throws java.io.IOException;
  
  
  public void audioPreload ( String s ) throws javax.sound.sampled.UnsupportedAudioFileException , javax.sound.sampled.LineUnavailableException , java.io.IOException;
  //public void audioPreload ( File f ) throws javax.sound.sampled.UnsupportedAudioFileException , javax.sound.sampled.LineUnavailableException , java.io.IOException;
  //public void audioUnload ( java.io.File afile ) throws java.io.IOException;    
  public void audioUnload ( String s ) throws java.io.IOException;
  //public void audioStart ( File f ) throws javax.sound.sampled.UnsupportedAudioFileException , javax.sound.sampled.LineUnavailableException , java.io.IOException;
  public void audioStart ( String s ) throws javax.sound.sampled.UnsupportedAudioFileException , javax.sound.sampled.LineUnavailableException , java.io.IOException;
  public void audioStop ( String s );
  public void audioStart ( String s , int loopTimes ) throws javax.sound.sampled.UnsupportedAudioFileException , javax.sound.sampled.LineUnavailableException , java.io.IOException;
  //public void audioStop ( File f );
  
  
  public void playMOD ( String s , int times ) throws Exception;
  //public void playMOD ( URL u , int times ) throws Exception;
  public void stopMOD ( ) throws Exception;
  
  
  public void stopAllSound();
  public void audioFadeOut(String audioFileName, double seconds);
  public void audioFadeIn ( String s , int loopTimes , double seconds , double delay ) throws UnsupportedAudioFileException, LineUnavailableException, java.io.IOException;
  
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.