[alsa-devel] ALSA calls don't work within Mozilla plug-ins
Olivier Guillion - Myriad
olivier at myriad-online.com
Tue Aug 23 13:22:11 CEST 2011
I'm trying to develop a Mozilla plug-in that display and plays music scores.
The music rendering module uses ALSA for sound (pcm) output.
It seems that, when called from a Mozilla plug-in, any ALSA function that gets
a pointer as parameter either crashes or returns wrong values.
I made a very simple test plug-in from the "Basic Plugin" source code provided
by Mozilla (I can provide the full project if needed). Here is what happens:
- Calling "snd_asoundlib_version" works
- Calling "snd_device_name_hint" crashes
- If the browser runs in super-user mode (sudo firefox), all works fine.
- If I load the plug-in (which is a shared library) from a program of my own
and call the test function, it works.
Does anyone have any idea about what could cause this issue?
Could it be related to access rights or memory allocation/mapping?
I'm really stuck here, any advice would be highly appreciated.
26 rue Michel de Montaigne
-------- WebSite -----------
Download here the latest version of our shareware programs, view the online
tutorials or get info about Myriad and its activities.
More information about the Alsa-devel