|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccs.chaos.NoiseGrabber
public class NoiseGrabber
The NoiseGrabber uses the Java Sound API to record the low-order bits of brief sound clips from the system. The idea is that you disconnect your mic, turn the gain up to 11 and record the preamp noise. This contains a useful amount of entropy.
Constructor Summary | |
---|---|
NoiseGrabber()
Constructs the NoiseGrabber. |
Method Summary | |
---|---|
void |
init()
Initialises the NoiseGrabber to read noise. |
byte[] |
sample(int secs)
Sample the line for a given period and return the non-zero low-order bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoiseGrabber()
Method Detail |
---|
public void init() throws java.io.IOException
sample
.
Can be safely called multiple times.
java.io.IOException
public byte[] sample(int secs) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |