robvdpol / RaceControl

Race Control is a standalone, open source F1TV client for Windows, written in C# on the .NET platform.
GNU General Public License v3.0
1.19k stars 95 forks source link

[BUG] App crashes when switching audio device #410

Open Awesome-0 opened 2 years ago

Awesome-0 commented 2 years ago

Describe the bug The app's audio breaks when switching the audio output device in windows 10 while watching. Often the application even becomes unresponsive and has to be shut down using Task Manager.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Race' (for instance Saudi Arabian Grand Prix)
  2. Play stream 'World Feed' and 'Max Verstappen' (using internal viewer)
  3. While watching left-click on the audio icon on the taskbar (windows 10) and switch audio device. (In my case from headphones to speakers.
  4. See / hear error

Expected behavior I expected the audio to simply switch over to the new device without crashing the application.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

F1TV account

Additional context Add any other context about the problem here.

Spexxel commented 2 years ago

I have tried reproducing this with the versions 2.5.5 and 2.6.3 but I was not able to do so. Can you provide the RaceControl.log? Also are you switching between two wired devices or is one (or both) of them wireless?

CLANI0 commented 2 years ago

I have the same issue - specifically moving to or from a Bluetooth device (Pro user, US based) - bluetooth headset is a Bose QC35ii

SuRGeoNix commented 2 years ago

There is an already known bug with bluetooth speakers/headsets for the internal player (I thought by changing from NAudio to XAudio2 in Flyleaf's version 3.4 would fix it but I guess it didn't). @Awesome-0 is your issue with bluetooth as well?