Ticket #323 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

pulseaudio doesn't play sound for short audio streams

Reported by: jstedfast Owned by: lennart
Milestone: Component: daemon
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 2 years ago.
mini.wav (8.4 kB) - added by jstedfast 2 years ago.
raw audio stream file
mini.mp3 (2.0 kB) - added by jstedfast 2 years ago.

Change History

Changed 2 years ago by jstedfast

Changed 2 years ago by jstedfast

raw audio stream file

  Changed 2 years ago 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

Changed 2 years ago by jstedfast

  Changed 2 years ago 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.

  Changed 2 years ago 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   Changed 2 years ago by lennart

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

in reply to: ↑ 4   Changed 2 years ago by jstedfast

Replying to lennart:

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

Thanks Lennart, your fixes are appreciated.

  Changed 2 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.