bug fixed: matching channels of ofxSoundRecorderObject#56
bug fixed: matching channels of ofxSoundRecorderObject#56sadmb wants to merge 2 commits intoroymacdonald:masterfrom
Conversation
Fixed a bug when ofxSoundRecorderObject can't record properly when the number of input channels and output channels are not the same.
|
Hi. Thanks but this is not the correct fix. It might work for you but it will not render files correctly when used in several other scenarios. |
|
The problem is that the number of channels for recorder is forced to be changed when it processes audioOut (ofxSoundUtils::checkBuffers). The channels of recorder should be the same as Can you tell me why its working buffer should be changed to the same size as output buffer? |
|
What I want to do is to record a stereo audio file with playing it on 4 speakers (headphones and stereo speakers) using a device with max 6 input channels and 16 output channels. |
|
Still it records a sound file with 4 channels and its sound is noisy. I think it's because it only has 2 mics but it records 4 channels so it has silent data for 2 channels out of 4 channels for each frame. |
|
Hi, |
|
did you take a look to the example-multiFileSoundRecorder? |
|
@roymacdonald
Yes. I know. But I believe that the number of channels of the recorded sound file should be the same as the input channels, not the output channels. Now it is possible to record a single channel audio file only when you would setup If it is not good to resize the |
|
sure. I understand your point. I could add some sort of utility function/class. something like a mix between the input multiplexer and recorder. I don't like the idea of just adding stuff to a class because it might be convenient in some cases where you can still make it without it. |
|
@roymacdonald I will use my branch for now because I couldn’t find the way to meet my requirement (recording a stereo audio file with 2mics and 4speakers), but I am happy if you can share your version. Thanks! |
|
I've also found |
… to ofxSoundInput Changed to resize the buffer of the recorder only when it is connected to ofxSoundInput because it can be connected to ofxSoundInputMultiplexer, ofxSingleSoundPlayer, etc...
Fixed a bug when ofxSoundRecorderObject can't record properly when the number of input channels and output channels are not the same.
Closes #55