-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup not adhereing to num of input channels #50
Comments
Hi. |
Hi, so
Not sure if that helps. |
Hi. this is helpful. thanks. |
I'm trying all this on OSX |
Ha, I've battle tested this addon on OSX, the matrix mixer in particular, running continously for months with no issues. One thing although is that I would usually set the sound stream to use the full amount of inputs available. |
I am not sure if tihs is the issue, but looking a little further I see: Line 23: Checks for the number of channels, for all the possible types of object this would make sense, except for an input. This calls:
I made a check altering this method:
And it is returning So changing ofxSoundObject so the ofxSoundInput::getNumChannels() method to:
Seems to fix the issue for me and the mixer has the correct number of input channels, but I am not sure of the whole intention of that method, or if this has some other effects. |
I am using a device with 18 outputs, just very simple testing with the
example-matrixMixer
.With these setup paramaters:
I get 18 channels of input on the matrix, despite requeting 2 (or any other number) as well as this warning:
[warning] ofSoundBuffer: resize(samples,val): channel count 18 is not consistent with sample count 512 (non-zero remainder)
However adding
cout<<ofToString(stream.getNumInputChannels())<< endl;
Reports the number of channels requested in the setup.
I have tested the normal ofSoundStream and this seems to adhere to the number of inputs and outputs set via
ofSoundStreamSettings
I am using the current master branch.
The text was updated successfully, but these errors were encountered: