/* * File : AudioPlayer.java * Created : 26-may-2002 21:21 * By : fbusquets * * JClic - Authoring and playing system for educational activities * * Copyright (C) 2000 - 2005 Francesc Busquets & Departament * d'Educacio de la Generalitat de Catalunya * * This program 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 2 of the License, or * (at your option) any later version. * * This program 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 (see the LICENSE file). */ package edu.xtec.jclic.media; import edu.xtec.jclic.bags.MediaBag; /** * * @author Francesc Busquets (fbusquets@xtec.cat) * @version 1.0 */ public interface AudioPlayer { public boolean setDataSource(Object source) throws Exception; public void realize(String fileName, MediaBag mediaBag) throws Exception; public void close(); public void play(); public void stop(); }