New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 660863 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

select mono speaker but no sound output

Reported by mki...@gmail.com, Oct 31 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36

Steps to reproduce the problem:
1. plug usb mono speaker : Yamaha pjp-20ur
speaker spec: http://www.yamaha.com/products/en/communication/usb_conference_speakerphones/pjp-20ur/?mode=model
2. go to https://webrtc.github.io/samples/src/content/devices/multi/
3. Local media files: play video and select Yamaha speaker, but no sound

If I set Yamaha speaker as system default speaker, selecting default will work but then selecting Yamaha is still no sound.

in chromium 53.0.2785.143
select Yamaha speaker, the sound will come out from default speaker; If I set Yamaha speaker as system default speaker, selecting default or selecting Yamaha then sound will come out from Yahama. If I choose other device as default speaker, selecting default or selecting Yamaha will end up from default.

What is the expected behavior?
sound should come out from Yamaha

What went wrong?
I'm not sure the issue is about devcie permission or sound quality(e.g. 16bits 48000Hz)

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 50.0.2661.102  Channel: stable
OS Version: Windows 8
Flash Version: Shockwave Flash 23.0 r0

issue happened on Windows 8.1 and Windows 10, no problem on Windows 7

no problem on build-in device and usb sound card
no problem on Skype or Zoom when they select Yamaha as output

It's similar to 
#623588 (set selected device as default/communications will work but just selece device by sinkId won't)

#600736 (device setting to another sound quality will work) In this case, Yamaha default sound quality is 16bits 48000Hz. If I change to 16bits 48000Hz(DVD) then it works.

adding --force-wave-audio and setting Yamaha speaker as system default speaker, the sound did come out from Yamaha, but setSinkId won't work since sound always come out from system default speaker 

Is there any workaround if I don't want to change Yamaha's device setting?
 
Labels: TE-Hardware-Dependency
Labels: Pri-1
Labels: Needs-Feedback
mkidyt@gmail.com: Can you try https://guidou.github.io/setsinkid-demo.html and report what kind of error do you get?

Comment 4 by mki...@gmail.com, Nov 8 2016

I met the error (as the attach image) when I just open the demo page, and I have no error message when I switch the option to Yamaha PJP-20UR, and the sound still come out from the default device when using Stable version and Canary version.

By the way, this problem also happen to Hangouts.
demoPage_error.png
24.5 KB View Download

Comment 5 by mki...@gmail.com, Nov 10 2016

I'm sorry that I can't report more detail debug information.
I followed the documents,
https://www.chromium.org/developers/how-tos/get-the-code
https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md
and tried to compile chromium. When I tried to do "ninja -C out/Debug chrome" but met some problem.
http://pastebin.com/j5qkShvd

Comment 6 by mki...@gmail.com, Nov 16 2016

I finally built chrome successfully and here's the error message got from the operation of switching device to Yamaha on sample page.

steps:
1. devenv /debugexe out\Default\chrome.exe
2. out\Default\chrome.exe --enable-logging --v=1
3. go to sample page
4. play video and use default
5. switch device to Yamaha
6. pop up a dialog and ask for wait for getusermedia or kill
7. wait for a while, pop up the fatal error window like attach image
8. get the log file
chromium_fatal_error.png
118 KB View Download
chrome_debug.log
4.9 MB View Download
Project Member

Comment 7 by sheriffbot@chromium.org, Nov 23 2016

Labels: -Needs-Feedback Needs-Review
Owner: guidou@chromium.org
Thank you for providing more feedback. Adding requester "guidou@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 8 by guidou@chromium.org, Nov 28 2016

Cc: dalecur...@chromium.org henrika@chromium.org
Components: -Blink>WebRTC Internals>Media>Audio
Owner: olka@chromium.org
olka@, can you take a look? 
This is crashing on a Windows-specific DCHECK while reading audio parameters.
AFAK, it looks like a driver issue since it works on Windows 7.

As a test, could you modify CoreAudioUtil::GetSharedModeMixFormat (https://cs.chromium.org/chromium/src/media/audio/win/core_audio_util_win.cc?q=core_audi&sq=package:chromium&l=566)

// Current code:
size_t bytes = sizeof(WAVEFORMATEX) + format_pcmex->Format.cbSize;
DCHECK_EQ(bytes, sizeof(WAVEFORMATPCMEX));
memcpy(format, format_pcmex, bytes);

// New test code:
size_t bytes = sizeof(WAVEFORMATPCMEX)
memcpy(format, format_pcmex, bytes);
...

and report back if it works for your device.

Labels: -Pri-1 Pri-2
Lowering priority since it most likely only affects a very specific hardware device.

Comment 11 by olka@chromium.org, Nov 28 2016

Cc: grunell@chromium.org olka@chromium.org
Owner: henrika@chromium.org
I can't really do anything about it since I have no win system to play with. henrika@ seems to have some idea of what's going on; also cc-ing grunell@ who does have a win system. 
mkidyt: please try the proposal in #9 and report back.

Just FYI, the device specification states that the speaker is not supported on Win 8.

See http://www.yamaha.com/products/en/communication/usb_conference_speakerphones/pjp-20ur/?mode=model

[Windows OS Support]
Due to the end of support by Microsoft, we announce to end the support of this product for the following OS.
OS:Windows 8, Windows XP, Windows 2000

Comment 13 by mki...@gmail.com, Dec 5 2016

I built the version 57.0.2938.2 , tried the proposal in #9and here's the new log.
The error message didn't come out and no sound come out when switching to the Yamaha device.

chrome_debug.log
7.7 MB View Download
Labels: -Pri-2 Pri-3
There is still some issues with the parameters the device reports that Chrome can't handle.
Chrome instead switches to using a so called fake device and thats the reason why there is no audio.
IMO, the device drivers seems broken somehow but I can't say for sure and it is super hard to make
changes just by looking at logfiles.

I am unable to guide more at this stage but would need an actual device to do more real work.
Must admit that such work (which only affects one device) is nothing we can prioritize right now.

Best proposal I have is is if you can play with the audio settings of the device and see if that helps. I don't think that the modified version is a way forward.

Or you can contact Yamaha and report the problem and ask for updated drivers given the error message in #9. Or, try another speaker in the mean time.
Status: Assigned (was: Unconfirmed)
Status: WontFix (was: Assigned)

Sign in to add a comment