This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

This sketch demonstrates how to use the getLineOut method of Minim. This method returns an AudioOutput object. An AudioOutput represents a connection to the computer's speakers and is used to generate audio with AudioSignals. There are five versions of getLineOut:

getLineOut()
getLineOut(int type) 
getLineOut(int type, int bufferSize) 
getLineOut(int type, int bufferSize, float sampleRate) 
getLineOut(int type, int bufferSize, float sampleRate, int bitDepth)  
The value you can use for type is either Minim.MONO or Minim.STEREO. bufferSize specifies how large you want the sample buffer to be, sampleRate specifies what the sample rate of the audio you will be generating is, and bitDepth specifies what the bit depth of the audio you will be generating is (8 or 16). type defaults to Minim.STEREO, bufferSize defaults to 1024, sampleRate defaults to 44100, and bitDepth defaults to 16. Before you exit your sketch make sure you call the close method of any AudioOutput's you have received from getLineOut.

Source code: getLineOut

Built with Processing