I am trying to get oF to listen to streaming sound output of my system. But the only thing working is listening to the microphone. So, the easiest way:
ofSoundStreamSetup(0,2,this, 44100, BUFFER_SIZE, 4);
works for the microphone, but I have no idea how to switch the input.
I tried this for the line out:
ofSoundStream soundStream;
soundStream.setDeviceID(2);
soundStream.setup(this, 0, 2, 44100, BUFFER_SIZE, 4);
But it doesn’t work. If I use only this: (so leave out soundStream.soundStream.setDeviceID(2))
ofSoundStream soundStream;
soundStream.setup(this, 0, 2, 44100, BUFFER_SIZE, 4);
It does work, but with the microphone again.
I also tried the example “audioInputExample”. If I use soundStream.setDeviceID(1) the microphone works, but if I change it to 2 than there is no audio input anymore.
What is the right way to use setDeviceID()?
(oF 0.8.0, OSX 10.8)