Zero comfort noise for stereo insted of assertion.
R=henrik.lundin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2084004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4645 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
3170b5750f
commit
45d2840623
@ -54,7 +54,7 @@ int ComfortNoise::Generate(size_t requested_length,
|
||||
// TODO(hlundin): Change to an enumerator and skip assert.
|
||||
assert(fs_hz_ == 8000 || fs_hz_ == 16000 || fs_hz_ == 32000 ||
|
||||
fs_hz_ == 48000);
|
||||
assert(output->Channels() == 1); // Not adapted for multi-channel yet.
|
||||
// Not adapted for multi-channel yet.
|
||||
if (output->Channels() != 1) {
|
||||
return kMultiChannelNotSupported;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user