Unexpected output channel count, expected stereo
NoxMortem opened this issue · 2 comments
(Unity 2017.3.0f3)
The FBSDK does only produce 0 byte .wav and .h264 files and in the log file I find the following error
[ 2017-12-27 16:16:23 ][LOG]: Folder is already existed
[ 2017-12-27 16:16:23 ][LOG]: Video Codec info: NV_ENC_H264
[ 2017-12-27 16:16:23 ][LOG]: Bitrate:: 500000
[ 2017-12-27 16:16:23 ][LOG]: Device type: DirectX 11
[ 2017-12-27 16:16:23 ][LOG]: Set encode configurations successfully
[ 2017-12-27 16:16:23 ][LOG]: Audio device name: : Lautsprecher (Steam Streaming Microphone)
[ 2017-12-27 16:16:23 ][LOG]: Audio device name: : Lautsprecher (Steam Streaming Speakers)
[ 2017-12-27 16:16:23 ][LOG]: Audio device name: : Lautsprecher (Creative SB X-Fi)
[ 2017-12-27 16:16:23 ][LOG]: Audio device name: : SPDIF Out (Creative SB X-Fi)
[ 2017-12-27 16:16:23 ][LOG]: Can't find Rift audio device. Just try to use default audio device
[ 2017-12-27 16:16:23 ][ERROR]: Unexpected output channel count, expected stereo
[ 2017-12-27 16:16:23 ][ERROR]: Failed to start output audio client
I am running on a 5.1 system, how can I specify the output channel count and fix the 0 byte video?
The screenshots work fine.
For now it only supports 2 channel speaker perfectly. If you want to use 5.1 system, you can change or comment out below line or in AudioCapture.cpp.
if (!isInput && outputPWFX_[sessionID]->nChannels != 2) {
DEBUG_ERROR("Unexpected output channel count, expected stereo");
return false;
}
Because it has been about over two months since v2.0 was released, I want to close v1.x related issues now. If you have any issue on v2.0, please create separate thread.
Thanks,