Examples of AudioFormat


Examples of javax.sound.sampled.AudioFormat

    /* For simplicity, the audio data format used for recording
       is hardcoded here. We use PCM 44.1 kHz, 16 bit signed,
       stereo.
    */
    AudioFormat  audioFormat = new AudioFormat(
      AudioFormat.Encoding.PCM_SIGNED,
      44100.0F, 16, 2, 4, 44100.0F, false);

    /* Now, we are trying to get a TargetDataLine. The
       TargetDataLine is used later to read audio data from it.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.