Package toxi.audio

Examples of toxi.audio.AudioSource


        l.setGain(1);
        AudioBuffer b = audioUtil.loadBuffer("test/phone_ulaw.wav");
        int delay = b.getSampleSize() * 1000 / b.getFrequency();
        System.out.println(b + " length=" + delay);
        if (b.convertUlawToPCM(false)) {
            AudioSource src = audioUtil.generateSource();
            src.setBuffer(b);
            src.play();
        } else {
            System.out.println("couldn't convert buffer data");
        }
        try {
            Thread.sleep(delay);
View Full Code Here

TOP

Related Classes of toxi.audio.AudioSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.