Comment 24 for bug 732572

Revision history for this message
In , Chris Coulson (chrisccoulson) wrote :

Created attachment 550239
Add pulseaudio support for GTK nsISound.play impl

This patch adds support for using Pulseaudio in nsISound.play() with gtk. I initially wrote this to use libcanberra (ca_context_play with CA_PROP_MEDIA_FILENAME). However, this only works for local file paths and I realized that nsISound.play takes a URI, so I ended up just feeding the stream directly to Pulseaudio instead.