roymacdonald / ofxSoundObjects

Simple yet super powerful modular sound architecture for openFrameworks.
Other
90 stars 26 forks source link

It can't record sound properly when the number of input channels is different from the number of output channels #55

Open sadmb opened 11 months ago

sadmb commented 11 months ago

It doesn't record sound properly when you use ofxSoundRecorderObject with the settings like below.

settings.numInputChannels =  2;
settings.numOutputChannels = 4;

...

input.connectTo(recorder).connectTo(mixer).connectTo(output);
recorder.startRecording(ofToDataPath("test.wav", true), true);

The number of channels of the recorder forced to change to 4 and its sound goes noisy.

roymacdonald commented 11 months ago

Hi. Thabks for letting me know. I have not faced this issue but I have an idea of what might be happening. I'll let you know if I can fix it soon.

sadmb commented 11 months ago

@roymacdonald Thanks for the reply. I've already fixed it so please check. ;)