# freebsd-version 11.0-RELEASE-p3 # pkg info | grep qTox qTox-1.5.2 I'm unable to hear anything in qTox and get the flowing warnings. Other audio programs work without any problems on the system. [15:26:33.420 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm0:play:dsp0" [15:26:33.421 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm0:play:dsp0" [15:26:37.286 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm1:play:dsp1" [15:26:37.286 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm1:play:dsp1" [15:26:38.343 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm2:play:dsp2" [15:26:38.343 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm2:play:dsp2" [15:26:38.883 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm3:play:dsp3" [15:26:38.883 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm3:play:dsp3" [15:26:39.854 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm2:play:dsp2" [15:26:39.854 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm2:play:dsp2" [15:26:40.065 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm1:play:dsp1" [15:26:40.066 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm1:play:dsp1" [15:26:40.310 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "pcm0:play:dsp0" [15:26:40.310 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "pcm0:play:dsp0" [15:26:40.686 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "OSS Default" [15:26:40.686 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "OSS Default" [15:26:42.426 UTC] src/audio/audio.cpp:386 : Debug: Opening audio output "OSS Default" [15:26:42.426 UTC] src/audio/audio.cpp:396 : Warning: Cannot open output audio device "OSS Default"
Hi, qTox depends on OpenAL (port audio/openal-soft) for audio support. I found now that it fails when PULSEAUDIO=off (which is a default). So the best thing you can try is to turn PULSEAUDIO=on for audio/openal-soft: # cd /usr/ports/audio/openal-soft # config .... set PULSEAUDIO=on then: # portupgrade -f openal-soft When PULSEAUDIO=on, qTox only shows /dev/dspN devices, no strings like "pcm3:play:dsp3". Please let me know if it works for you with PULSEAUDIO=on Yuri
(In reply to Yuri Victorovich from comment #1) Thanks! Yes, seting PULSEAUDIO=on in audio/openal-soft fixed qTox. However, the problem is that every `pkg upgrade' tries to overwrite the custom package (from ports). Also, the fix works only with ports and if someone (“normal users”) relies on binary packages, qTox+openal-soft is not usable. Is there any way to fix the package permanently (e.g. by setting PULSEAUDIO to on by default)? I guess that PULSEAUDIO is disabled to reduce the number of dependencies, but it's actually necessary for qTox to work. What do you think about it? Thanks again for your reply! PS I added mva@ as the maintainer of audio/openal-soft to the conversation.
For some reason, I can't set "depends on" field. Bug#214710 asks for the fix in openal port. Nothing can be done in qtox port besides changing the default to PULSEAUDIO=on. Not sure if this should be done.
Ah, sorry, PULSEAUDIO is the option in openal, not qTox, so nothing can be done in qTox at all since all it does it calls openal for audio. Changing the update command to: > pkg upgrade && portupgrade -f openal-soft should help in the meantime. It relies on the PULSEAUDIO=on being set in audio/openal-soft. Yuri
I also sent the message to the OpenAL ML about the problem: http://openal.org/pipermail/openal/2016-November/thread.html
It turned out that this was a bug in qTox itself: https://github.com/qTox/qTox/issues/3904 They should apply the patch and once they will make a release the problem will be gone.
(In reply to Yuri Victorovich from comment #6) Could we just apply this patch locally until a new release?
Created attachment 177590 [details] patch Ok, attaching the patch.
There is new release available 1.6.0. This problem is supposed to be fixed there.
It looks like GH account tux3 was renamed and redirected to qTox. I will uploas the patch once ready.
(In reply to Yuri Victorovich from comment #9) Thanks a lot for working on that!
Created attachment 177616 [details] patch updating to 1.6.0 You welcome! --- The patch updates to 1.6.0. It passes poudriere on 11amd64.
A commit references this bug: Author: jhale Date: Fri Dec 2 22:25:49 UTC 2016 New revision: 427585 URL: https://svnweb.freebsd.org/changeset/ports/427585 Log: Update to 1.6.0 This should fix audio output issues addressed in the PR PR: 214393 Submitted by: Yuri Victorovich <yuri@rawbw.com> (maintainer) Reported by: <aeuii@posteo.de> Changes: head/net-im/qTox/Makefile head/net-im/qTox/distinfo head/net-im/qTox/files/patch-qtox.pro head/net-im/qTox/files/patch-src_main.cpp head/net-im/qTox/files/patch-src_platform_camera_v4l2.cpp head/net-im/qTox/files/patch-src_platform_camera_v4l2.h head/net-im/qTox/files/patch-src_video_cameradevice.cpp head/net-im/qTox/files/patch-src_video_videomode.cpp head/net-im/qTox/files/patch-src_widget_form_settings_aboutsettings.ui
Committed update to 1.6.0 with the addition of files/patch-src_platform_camera_v4l2.cpp to fix build with GCC 4.9. Thanks!