Open i-rinat opened 7 years ago
That was a tough one. Implemented in d1d3e15779a0d06ba166027a7d5b786df4a74b06...86f0841da7bc51a69b7666d6b2b5317297855c81. Most of it probably is not necessary. And eventually the main obstacles were capture buffer overruns and overrun recovery code. Buffers are now at least four times as big as period sizes, and there is additional state recovery code.
Should work in v0.1.10 now.
@i-rinat Are you sure, that it really works? I have tried http://appear.in/ and http://meet.jit.si/ and both seem to have issues with recognizing audio inputs ("the microphone couldn't be found"). Shouldn't apulse tell browser some additional metadata, perhaps at least fake one?
Are you sure, that it really works?
I didn't actually tried to make a call through meet.jit.si, but microphone selection in Firefox looks fine:
Shouldn't apulse tell browser some additional metadata, perhaps at least fake one?
It does that, here: https://github.com/i-rinat/apulse/blob/86f0841da7bc51a69b7666d6b2b5317297855c81/src/apulse-context.c#L263
Are you sure you are using apulse v0.1.10?
For some reason, neither meet.jit.si nor appear.in work in Firefox 53 on my machine. It doesn't seem to be related to apulse, as it has the same behavior even with PulseAudio.
On latest master (bcd55c85365aff30668f17e2ed6ba86d5d235ce3), I can use my mic just fine with Jitsi Meet, so this seems to be fixed.
Doesn't work on 0.1.13 for me in firefox-82.0. https://test.webrtc.org/ tells me that
Audio capture [ OK ] Audio track created using device=default [ FAILED ] No active input channels detected. Microphone is most likely muted or broken, please check if muted in the sound settings or physically on the device. Then rerun the test.
It works fine in ALSA with software like Mumble tho.
There are functions that Firefox tries to use when capturing audio, which are not implemented in apulse.
To test, open https://webaudiodemos.appspot.com/Vocoder/index.html, select "live input" in "modulator" block and push play button on the page.