// Path: src/uk/ac/open/audio/AudioException.java
// public class AudioException extends Exception
// {
// 	/**
// 	 * @param cause Underlying exception
// 	 */
// 	public AudioException(Throwable cause)
// 	{
// 		super(cause);
// 	}
// 
// 	/**
// 	 * @param message Informational message
// 	 */
// 	public AudioException(String message)
// 	{
// 		super(message);
// 	}
// }


import uk.ac.open.audio.AudioException;
import java.io.InputStream;
/*
Copyright 2009 The Open University
http://www.open.ac.uk/lts/projects/audioapplets/

This file is part of the "Open University audio applets" project.

The "Open University audio applets" project is free software: you can
redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

The "Open University audio applets" project is distributed in the hope that it
will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with the "Open University audio applets" project.
If not, see <http://www.gnu.org/licenses/>.
*/
package uk.ac.open.audio.streaming;



/**
 * Interface implemented by anything that can stream data.
 */
public interface StreamableDecoder
{
	/**
	 * Initialises the decoder. This must be called precisely once per decoder.
	 * You cannot reuse a decoder.
	 * @param is Stream containing input data
	 * @throws AudioException If there's any problem
	 */
// Path: src/uk/ac/open/audio/AudioException.java
// public class AudioException extends Exception
// {
// 	/**
// 	 * @param cause Underlying exception
// 	 */
// 	public AudioException(Throwable cause)
// 	{
// 		super(cause);
// 	}
// 
// 	/**
// 	 * @param message Informational message
// 	 */
// 	public AudioException(String message)
// 	{
// 		super(message);
// 	}
// }


// Path: src/uk/ac/open/audio/streaming/StreamableDecoder.java
import uk.ac.open.audio.AudioException;
import java.io.InputStream;

/*
Copyright 2009 The Open University
http://www.open.ac.uk/lts/projects/audioapplets/

This file is part of the "Open University audio applets" project.

The "Open University audio applets" project is free software: you can
redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

The "Open University audio applets" project is distributed in the hope that it
will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with the "Open University audio applets" project.
If not, see <http://www.gnu.org/licenses/>.
*/
package uk.ac.open.audio.streaming;



/**
 * Interface implemented by anything that can stream data.
 */
public interface StreamableDecoder
{
	/**
	 * Initialises the decoder. This must be called precisely once per decoder.
	 * You cannot reuse a decoder.
	 * @param is Stream containing input data
	 * @throws AudioException If there's any problem
	 */
	public void init(InputStream is) throws AudioException;