Package snap.swing

Class SoundRecorder

java.lang.Object
snap.swing.SoundRecorder

public class SoundRecorder extends Object
A class to record sounds.
  • Constructor Details

    • SoundRecorder

      public SoundRecorder()
  • Method Details

    • getBytes

      public byte[] getBytes()
      Returns the bytes.
    • setBytes

      public void setBytes(byte[] theBytes)
      Sets the bytes.
    • getSoundFile

      public File getSoundFile()
      Returns the temporary file that holds the last recorded bytes.
    • isRecording

      public boolean isRecording()
      Whether file is recording.
    • startRecording

      public void startRecording()
      Start recording.
    • stopRecording

      public void stopRecording()
      Stop recording.