GNOME Bugzilla – Bug 139818
Audio output drops if program is idle
Last modified: 2009-08-15 18:40:50 UTC
Compile the attached test case. If the usleep() delay is increased, the audio output starts to drop. Similarly, "gst-launch { filesrc location=foo ! spider ! osssink } doesn't work unless the gst-launch process is kept alive by regularly sending it some signal.
Created attachment 26586 [details] test case
This works perfectly for me on Linux, even with usleep(2000000000). This appears more likely to be a problem with FreeBSD's threading implementation. Or possibly, with GLib's usage of it. You should also try with different schedulers. I'd be surprised if it caused a difference, but if it does, it might point to the cause.
jylefort, ping
Pong.
funny :) could you try David's suggestions and reply ?
All the tested schedulers exhibit the same problem.
Ok, adding myself to cc. Going to mail the freeBSD porter and ask them to try and give some input.
I think you can close this one. It does not happen anymore on FreeBSD 5.x. Moreover, I've found out that some other sound libraries exhibited the same problem.
ok, thanks for the update. Closing.