⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 baseaudiomanager.java

📁 It is the Speech recognition software. It is platform independent. To execute the source code,
💻 JAVA
字号:
/** * Copyright 1998-2003 Sun Microsystems, Inc. *  * See the file "license.terms" for information on usage and * redistribution of this file, and for a DISCLAIMER OF ALL  * WARRANTIES. */package com.sun.speech.engine;import javax.speech.AudioManager;import javax.speech.AudioListener;import java.util.Vector;/** * Supports the JSAPI 1.0 <code>AudioManager</code> * interface.  Actual JSAPI implementations might want to extend * or modify this implementation. */public class BaseAudioManager implements AudioManager {    /**     * List of <code>AudioListeners</code> registered for     * <code>AudioEvents</code> on this object.     */    protected Vector listeners;        /**      * Class constructor.     */    public BaseAudioManager() {        listeners = new Vector();    }    /**     * Requests notification of <code>AudioEvents</code> from the     * <code>AudioManager</code>.     *     * @param listener the listener to add     */    public void addAudioListener(AudioListener listener) {        if (!listeners.contains(listener)) {            listeners.addElement(listener);        }    }        /**     * Removes an <code>AudioListener</code> from the list of     * <code>AudioListeners</code>.     *     * @param listener the listener to remove     */    public void removeAudioListener(AudioListener listener) {        listeners.removeElement(listener);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -