SlotCarSoundSample.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:jaer 作者:
/** Creates new SlotcarSoundEffects labeled number i, using sampled sound stored as preference for this number.
     *
     * @param soundNumber an index, used to look up the preferred sound file.
     * @throws IOException
     * @throws LineUnavailableException
     * @throws UnsupportedAudioFileException
     */
    public SlotCarSoundSample(String filename) throws IOException, UnsupportedAudioFileException, LineUnavailableException {
//        if (soundNumber >= SlotCarSoundSample.getSoundFilePaths().size()) {
//            throw new IOException("There is no sound number " + soundNumber + " available");
//        }
        setFile(filename);
        open();
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号