bugGNUstep Application Project - Bugs: bug #42865, [Cynthiune] [ALSA] Cannot play...

 
 

bug #42865: [Cynthiune] [ALSA] Cannot play another song if one is already playing

Submitter:  Yavor Doganov <yavor>
Submitted:  Mon 28 Jul 2014 11:16:16 PM UTC
   
 
Category:  Application Severity:  3 - Normal
Item Group:  Bug Status:  Works For Me
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 25 Dec 2017 02:11:01 PM UTC, comment #2: 

I cannot reproduce anymore, both with 1.0.0 or SVN trunk.
Please close the bug; thanks.

Yavor Doganov <yavor>
Sat 28 Feb 2015 04:15:17 PM UTC, comment #1: 

I cannot reproduce your problem using ALSA on Linux/Gentoo.
I do get a console message when I change file while one is still playing (also with "next song" button).

2015-02-28 16:11:07.293 Cynthiune[5851] Failed writing to the ALSA device:
Broken pipe, trying to recover.
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.28/work/alsa-lib-1.0.28/src/pcm/pcm.c:7843:(snd_pcm_recover) underrun occurred

However the song plays fine.

If I apply your patch, I get the same message though, so for now I do not commit your patch.

Riccardo Mottola <rmottola>
Group administrator
Mon 28 Jul 2014 11:16:16 PM UTC, original submission:  

If you start playing a song and then double-click on another song in the playlist (without pushing the "stop" button), there's an ALSA error and the new song gets quickly rewinded:

[New Thread 0xb29e6b40 (LWP 28504)]
ALSA lib pcm.c:7993:(snd_pcm_set_params) Unable to set hw params for PLAYBACK: File descriptor in bad state
ALSA lib pcm.c:7993:(snd_pcm_set_params) Unable to set hw params for PLAYBACK: File descriptor in bad state
2014-07-29 00:54:58.317 Cynthiune[28493] Failed to set device parameters:File descriptor in bad state
2014-07-29 00:54:58.318 Cynthiune[28493] Failed writing to the ALSA device:
Input/output error, trying to recover.
...repeated...


The attached patch fixes this.

Yavor Doganov <yavor>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #31790:  alsa.patch added by yavor (533B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rmottola (Posted a comment)
  • -email is unavailable- added by yavor (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-31 rmottola StatusNone Works For Me
        Open/ClosedOpen Closed
    2014-07-28 yavor Attached File- Added alsa.patch, #31790

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code