Audio output device errors should be recoverable

Bug #1312541 reported by Dustin Spicuzza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
High
Dustin Spicuzza

Bug Description

Currently, certain types of audio output problems (such as removing a USB audio device during playback) cause errors to happen that currently Exaile cannot recover from. These problems should be addressed.

Related branches

Changed in exaile:
milestone: none → 3.4.0
Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :

If you eject a CD when playing it, this problem occurs also. Will need to test that case once this is fixed.

Revision history for this message
Johannes Sasongko (sjohannes) wrote :

In Windows:

* Unplugging a USB soundcard causes playback to switch to my on-board soundcard. Disabling the on-board soundcard causes Exaile to try playing the next track, and the next, and the next....

* Unplugging a USB drive causes playback to stop with an error message (displayed on the info bar).

* Can't test with CD because the CD plugin is looking for dbus (we should make this optional). Although, on second thought, I can probably use the Files panel.

Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :

Interesting. When unplugging a USB device, one of the Linux audiosinks exhibits the switching behavior, and the other doesn't. I think ALSA switches automatically, and PulseAudio just stops playback.

I think the main thing that the CD plugin provides via hal/udisks is autodetection of the CD contents. I believe gstreamer supports CD output on all supported platforms, but I'm not sure if it supports enumerating the contents of the CD. It would be cool if we could use GST to do this type of thing instead.

Changed in exaile:
importance: Undecided → High
status: New → In Progress
assignee: nobody → Dustin Spicuzza (dustin-virtualroadside)
Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :

To be more precise, CD playback using the ALSA sink, when you have multiple songs queued from the CD.

Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :

Johannes, I just pushed a fix at r4577 that I believe fixes the root of the problem -- namely, that the mainbin isn't flushed out before the error recovery tries to use it again. Can you confirm that your Windows issues are fixed also? If so, I think we're ready for a 3.4 release.

Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :

Tested fix on Windows 8 with a USB soundcard, looks like it works fine. It does have the odd problem of zooming through the playback instead, but you can still control it properly.

Changed in exaile:
status: In Progress → Fix Committed
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.