Description |
|
The Processing sonic library allows for easy playback of sound files and the capability for more advanced sound manipulation. The sonic library is a sound engine which mixes BSound objects as they are played. Each BSound object is composed of many audio samples. To start the sound engine, call the beginSound() function in setup(). When beginSound(int length) is called, full sound processing is allowed as well as playback. That means that the samples[] array has a number of elements equal to length, and soundEvent() is called whenever a new audio frame is played. The sonic engine processes sounds at 8 bits, mono and 8000Hz. Note: Due to current limitation in the way Java 1.1 processes audio, the full sound processing mode has a time lag which varies among different machines and configurations. This may improve in future versions of Processing. |