1.1 --- a/sound/src/main/java/org/apidesign/html/sound/spi/AudioEnvironment.java Tue May 28 12:29:21 2013 +0200
1.2 +++ b/sound/src/main/java/org/apidesign/html/sound/spi/AudioEnvironment.java Wed Aug 07 15:29:42 2013 +0200
1.3 @@ -1,38 +1,36 @@
1.4 /**
1.5 - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
1.6 - * <jaroslav.tulach@apidesign.org>
1.7 + * HTML via Java(tm) Language Bindings
1.8 + * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
1.9 *
1.10 - * This program is free software: you can redistribute it and/or modify it under
1.11 - * the terms of the GNU General Public License as published by the Free Software
1.12 - * Foundation, version 2 of the License.
1.13 + * This program is free software: you can redistribute it and/or modify
1.14 + * it under the terms of the GNU General Public License as published by
1.15 + * the Free Software Foundation, version 2 of the License.
1.16 *
1.17 - * This program is distributed in the hope that it will be useful, but WITHOUT
1.18 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.19 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.20 - * details.
1.21 + * This program is distributed in the hope that it will be useful,
1.22 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.23 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.24 + * GNU General Public License for more details. apidesign.org
1.25 + * designates this particular file as subject to the
1.26 + * "Classpath" exception as provided by apidesign.org
1.27 + * in the License file that accompanied this code.
1.28 *
1.29 - * You should have received a copy of the GNU General Public License along with
1.30 - * this program. Look for COPYING file in the top folder. If not, see
1.31 - * http://opensource.org/licenses/GPL-2.0.
1.32 + * You should have received a copy of the GNU General Public License
1.33 + * along with this program. Look for COPYING file in the top folder.
1.34 + * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException
1.35 */
1.36 package org.apidesign.html.sound.spi;
1.37
1.38 -import net.java.html.sound.AudioClip;
1.39 -
1.40 -/**
1.41 +/** Basic interface for sound playback providers.
1.42 *
1.43 * @author antonepple
1.44 + * @param <Audio> the type representing an audio
1.45 */
1.46 -public interface AudioEnvironment {
1.47 +public interface AudioEnvironment<Audio> {
1.48 + public Audio create(String src);
1.49
1.50 - public Object play(AudioClip aThis, Object cached);
1.51 + public void play(Audio a);
1.52
1.53 - public Object pause(AudioClip aThis, Object cached);
1.54 + public void pause(Audio a);
1.55
1.56 - public Object stop(AudioClip aThis, Object cached);
1.57 -
1.58 - public Object setVolume(AudioClip aThis, int volume, Object cached);
1.59 -
1.60 - public Object playFrom(AudioClip aThis, int seconds, Object cached);
1.61 -
1.62 + public void setVolume(Audio a, double volume);
1.63 }