To be precise.
from processing i am trying to record and save an audio file which should be of .ogg formate.
(i am using minim lib so it will not going to allow ogg).
how to use plugins to serve my purpose.(if any).
sample code follows.
import javax.sound.sampled.AudioFileFormat;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
//import javax.sound.sampled.DataLine;
//import javax.sound.sampled.SourceDataLine;
//import javax.sound.sampled.TargetDataLine;
import ddf.minim.*;
import ddf.minim.effects.*;
Minim minim;
AudioInput in;
AudioRecorder recorder;
BandPass bpf;
AudioSample jingle;
float[] leftChannel=new float[400];
float[] select =new float[500];
void setup()
{
size(400, 100, P2D);
textMode(SCREEN);
minim = new Minim(this);
in = minim.getLineIn(Minim.STEREO, 2048);
//added
recorder = minim.createRecorder(in, "
myrecording.ogg", true);
textFont(createFont("SanSerif", 12));
}
void draw()
{
background(0);
stroke(255);
for(int i = 0; i < in.bufferSize() - 1; i++)
{
line(i, 50 + in.left.get(i)*50, i+1, 50 + in.left.get(i+1)*50);
//line(i, 150 + in.right.get(i)*50, i+1, 150 + in.right.get(i+1)*50);
}
if (recorder.isRecording())
{
text("Currently recording...", 5, 15);
}
else
{
text("Not recording.", 5, 15);
}
}
....some more code .......