sound/src/main/java/org/apidesign/html/sound/spi/AudioEnvironment.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 07 Aug 2013 15:29:42 +0200
branchsound
changeset 223 ef2399c0fb9e
parent 109 0b12d1c32314
child 248 cc466a4b6f58
permissions -rw-r--r--
Implementation of the AudioClip that uses HTML5 Audio tag
     1 /**
     2  * HTML via Java(tm) Language Bindings
     3  * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     4  *
     5  * This program is free software: you can redistribute it and/or modify
     6  * it under the terms of the GNU General Public License as published by
     7  * the Free Software Foundation, version 2 of the License.
     8  *
     9  * This program is distributed in the hope that it will be useful,
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12  * GNU General Public License for more details. apidesign.org
    13  * designates this particular file as subject to the
    14  * "Classpath" exception as provided by apidesign.org
    15  * in the License file that accompanied this code.
    16  *
    17  * You should have received a copy of the GNU General Public License
    18  * along with this program. Look for COPYING file in the top folder.
    19  * If not, see http://wiki.apidesign.org/wiki/GPLwithClassPathException
    20  */
    21 package org.apidesign.html.sound.spi;
    22 
    23 /** Basic interface for sound playback providers.
    24  *
    25  * @author antonepple
    26  * @param <Audio> the type representing an audio
    27  */
    28 public interface AudioEnvironment<Audio> {
    29     public Audio create(String src);
    30 
    31     public void play(Audio a);
    32 
    33     public void pause(Audio a);
    34 
    35     public void setVolume(Audio a, double volume);
    36 }