Ticket #323 (new defect)

Opened 2 months ago

Last modified 3 weeks ago

pulseaudio doesn't play sound for short audio streams

Reported by: jstedfast Assigned to: lennart
Priority: normal Milestone:
Component: daemon Severity: normal
Keywords: Cc:

Description

gcc -g pulse-audio-alsa-threaded.c -o pulse-audio-alsa-threaded -I/usr/include/alsa -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lasound -lglib-2.0

./pulse-audio-alsa-threaded

Attachments

pulse-audio-alsa-threaded.c (4.8 kB) - added by jstedfast on 07/16/08 21:27:51.
mini.wav (8.4 kB) - added by jstedfast on 07/16/08 21:28:34.
raw audio stream file
mini.mp3 (2.0 kB) - added by jstedfast on 07/16/08 21:32:09.

Change History

07/16/08 21:27:51 changed by jstedfast

  • attachment pulse-audio-alsa-threaded.c added.

07/16/08 21:28:34 changed by jstedfast

  • attachment mini.wav added.

raw audio stream file

07/16/08 21:30:10 changed by jstedfast

apparently, mplayer has the same problem trying to play the original mp3 file (I'll attach that in a sec) - sometimes it works, but it is hit-or-miss

07/16/08 21:32:09 changed by jstedfast

  • attachment mini.mp3 added.

07/16/08 21:57:44 changed by lennart

Hmm, indeed. The start() command of the pulse ioplug is missing a pa_stream_trigger() call. Easy to fix. Will post a patch to alsa-devel shortly.

This is kind of dirty however, since the ALSA in this respect doesn't really map to the PA API. But I guess we have to live with that.

07/18/08 21:50:30 changed by lennart

This should fix your issue.

http://mailman.alsa-project.org/pipermail/alsa-devel/2008-July/009349.html

I'd be very thankful if you could test this patch! I did some local testing, but would be thankful for your testing results as well.

(follow-up: ↓ 5 ) 08/15/08 14:43:15 changed by lennart

Closing since this got merged upstream and apparently fixes the problem.

(in reply to: ↑ 4 ) 08/15/08 15:00:58 changed by jstedfast

Replying to lennart:

Closing since this got merged upstream and apparently fixes the problem.

Thanks Lennart, your fixes are appreciated.