BelledonneCommunications / linphone-windows10

Linphone.org mirror for linphone-windows10 (git://git.linphone.org/linphone-windows10.git)
GNU General Public License v2.0
15 stars 27 forks source link

Audio problem with external multichannel sound card #13

Open EitZei opened 4 years ago

EitZei commented 4 years ago

Linphone Desktop 4.1.1 - Qt5.9.0 (Core 3.12.0) Windows 10 (v1809) RME Babyface Pro sound card (firmware 101, driver 1.168)

Reproduction steps:

  1. Start linphone for Windows 10
  2. Preferences
  3. Audio
  4. Ringer device: Select some other Babyface WASAPI audio playback device than the one using channels 1+2
  5. Play ring sound

Expected result: Test sound is played

Actual result: Test sound is not played.

This can also be reproduced if device is set as playback device. Also reproducible with Windows 7.

The error Could not get render service from the MSWASAPI audio output interface is always present when this happens. Although the log says that sound card does not support 48000 Hz and is not 2 channel output I recon that that is a false positive. All the chennels work perfectly fine with other WASAPI-enabled software like Audacity.

2019-10-31 13:12:58:214 MESSAGE Opening C:\Program Files (x86)\Linphone\share/sounds/linphone/rings/notes_of_the_optimistic.mkv
2019-10-31 13:12:58:214 MESSAGE MKVPlayer: opening C:\Program Files (x86)\Linphone\share/sounds/linphone/rings/notes_of_the_optimistic.mkv
2019-10-31 13:12:58:215 WARNING MKVPlayer: no default video track. Looking for first video track
2019-10-31 13:12:58:215 WARNING MKVPlayer: no video track found
2019-10-31 13:12:58:224 WARNING The sound card (Analog (3+4) (RME Babyface Pro)) does not support 48000Hz
2019-10-31 13:12:58:225 WARNING The sound card (Analog (3+4) (RME Babyface Pro)) does not support 2 channels
2019-10-31 13:12:58:225 MESSAGE Resampling to 48000Hz
2019-10-31 13:12:58:225 MESSAGE speex_lib_ctl init with neon ? 0
2019-10-31 13:12:58:225 MESSAGE ms_filter_link: MSMKVPlayer:14A42C70,1-->MSOpusDec:14A42DF0,0
2019-10-31 13:12:58:225 MESSAGE ms_filter_link: MSOpusDec:14A42DF0,0-->MSResample:14A42EB0,0
2019-10-31 13:12:58:225 MESSAGE ms_filter_link: MSResample:14A42EB0,0-->MSWASAPIWrite:14A42D30,0
2019-10-31 13:12:58:225 MESSAGE Initializing speex resampler in mode [voip] 
2019-10-31 13:12:58:248 MESSAGE MSWASAPI audio output interface buffer size: 1056
2019-10-31 13:12:58:249 ERROR Could not get render service from the MSWASAPI audio output interface [88890003]
EitZei commented 4 years ago

It seems that issue is to have playback and recording devices with same name. In example case the Babyface driver creates both playback and recording device with name "Analog (3+4)". If the name of the one of the devices is changed the audio starts to work.