'Twas brillig, and Harsha, Priya at 15/09/09 10:17 did gyre and gimble:
Hi,

Can anyone help understand this behavior on my system?

1. I try playing a 50 min file using paplay and
it works perfectly fine

2. I try playing the following script and it works
perfectly fine
for ((i=0; i<5; i++)); do echo $i; aplay
/usr/share/sounds/alsa/Front_Center.wav; sleep(1); done
3. I try playing the following script (without delay in-between
each file playback) and it stops during 5th playback
for ((i=0; i<5; i++)); do echo $i; aplay
/usr/share/sounds/alsa/Front_Center.wav; done

Somehow, if I change in /etc/pulse/default.pa, add "timeout=0" to module 
module-suspend-on-idle, the 3rd scenario also plays
perfectly fine.

Can anyone help explain what could be going wrong in 3rd scenario?
And why setting timeout=0 solves the issue? Is setting timeout=0
the right solution?

No there should be no solution necessary. The fact it stops is some kind of bug...

That said, I cannot reproduce here:

$ for ((i=0; i<5; i++)); do echo $i; aplay /usr/share/sounds/ia_ora-notification.wav; done
0
Playing WAVE '/usr/share/sounds/ia_ora-notification.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
1
Playing WAVE '/usr/share/sounds/ia_ora-notification.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
2
Playing WAVE '/usr/share/sounds/ia_ora-notification.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
3
Playing WAVE '/usr/share/sounds/ia_ora-notification.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
4
Playing WAVE '/usr/share/sounds/ia_ora-notification.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo


All works fine and exits cleanly after playing me five "bings" :)

Col

--

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

Reply via email to