Soundrecording from the input


#1

Hello…i want to record and encode my voice over the input-channel of my soundcard…first i changed JuceDemo—>now my program can encode a wav-stream(AudioDemo-Playback) into an aac-file in real-time…now i want to replace the wav-stream with the Line-In of my soundcard.

the samples are encoded by the function

errorEnc = Encode( blabla,
outputChannelData[0], <----------
blabla,
blabla,
blabla,
…);

outputChannelData is the array my Player gives to the Encoder.
It comes from the Juce-function audioDeviceIOCallback() .
But how can i access the data from the Line-In?? Must i open this device? I have no idea!! I hope you understand what my problem is and somebody can help me! Thanx