npisanti/ofxPDSP

Error on input in Windows

Closed this issue · 3 comments

dasoe commented

Dear npisanti,

your addon is great stuff, thank you very much!
I sucessfully compiled the examples on Win7, OF 0.10. I have a problem with input, though. When running example-audio-input or example-analysis, I get the following error in command window (and do not hear/see any input at all):

RtApiWasapi::probeDeviceOpen: Render device selected as input device

engine.listDevices(); brings me sth. like:

[Unknown API: 0] Lautsprecher (Realtek High Definition Audio) [in:0 out:2] (default out)
[Unknown API: 1] Mikrofon (Realtek High Definition Audio) [in:2 out:0] (default in)
[Unknown API: 1] Mikrofon (HD Webcam C525) [in:1 out:0]

Error occurs no matter what I choose for setOutputDeviceID() and engine.setOutputDeviceID(). (It also occurs, when de-plugging web cam...)
Do I miss something?

Thanks for any hint...
oe

i just saw that updating to 0.10 i introduced a bug into the input id selection, i made a fix, so git pull again ofxPDSP and then test like this:

    engine.setOutputDeviceID(0);
    engine.setInputDeviceID(1);    
    engine.setup( 44100, 512, 3); 

@dasoe let me know if i can consider this issue closed =)

dasoe commented

Man, you're quick! (sorry I was not, I am not able to work on each project every day)
The fix solved the issue for me.

Thank you very much, this was impressive!