Commit a7b961ed authored by tommi@chromium.org's avatar tommi@chromium.org

Changing a NOTREACHED to a LOG(WARNING) for cases when a mic isn't connected.

TEST=Removes a DCHECK that we would hit on machines without a mic.
BUG=none
Review URL: http://codereview.chromium.org/8335005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107936 0039d316-1c4b-4281-b951-d872f2087c98
parent 9c96421f
...@@ -207,7 +207,10 @@ double WASAPIAudioInputStream::HardwareSampleRate(ERole device_role) { ...@@ -207,7 +207,10 @@ double WASAPIAudioInputStream::HardwareSampleRate(ERole device_role) {
device_role, device_role,
endpoint_device.Receive()); endpoint_device.Receive());
if (FAILED(hr)) { if (FAILED(hr)) {
NOTREACHED() << "error code: " << hr; // This will happen if there's no audio capture device found or available
// (e.g. some audio cards that have inputs will still report them as
// "not found" when no mic is plugged into the input jack).
LOG(WARNING) << "No audio end point: " << std::hex << hr;
return 0.0; return 0.0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment