<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
With this patch applied, you app should work nicely with the following<br>
pipeline:<br><br>
App -> PortAudio -> Alsa -> Pulse -> Sound H/W -> Ears -> Brain<br></blockquote>
Well, then I could just go with PortAudio and rely on Ubuntu to patch their thing someday :)<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
Lennart wrote a nice article about Audio APIs recently:<br><a href="http://0pointer.de/blog/projects/guide-to-sound-apis.html" target="_blank">http://0pointer.de/blog/projects/guide-to-sound-apis.html</a><br><br>
May make for some nice reading :)<br></blockquote>
Thanks, I've been looking for something like that...<br><br clear="all">--<br>Regards Jonas Finnemann Jensen.<br>
<br><br><div class="gmail_quote">On Tue, Jan 27, 2009 at 13:34, Colin Guthrie <span dir="ltr"><<a href="mailto:gmane@colin.guthr.ie">gmane@colin.guthr.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
'Twas brillig, and Jonas Finnemann Jensen at 27/01/09 11:18 did gyre and<br>
gimble:<br>
<div class="Ih2E3d">> Hi,<br>
><br>
> I don't know if this is the right list to post this question, if not I'm<br>
> very sorry and feel free to ignore me :)<br>
> (I think maybe this should have gone to PortAudio list, but it's down<br>
> for the moment).<br>
><br>
> I'm doing a free platform independent application in C# using mono...<br>
> Now I wish to do audio playback, so far I've found some C# bindings for<br>
> PortAudio, and as far as I can see it should be easy to include and<br>
> distribute PortAudio in a windows release...<br>
><br>
> However, I'm running Ubuntu 8.10, and when playing music with PortAudio<br>
> other applications can't play anything... I think this is because<br>
> PortAudio uses ALSA directly...<br>
<br>
</div>This shouldn't be a problem as alsa can be directed to pulseaudio.<br>
<br>
I'm going to hazard a guess and say that Ubuntu probably hasn't included<br>
Kevin Kofler's patches in their portaudio package that makes it play<br>
nice with the alsa->pulse plugin? You should look in the Fedora or<br>
Mandriva portaudio packages for this patch. I'm not sure if it's gone<br>
upstream.<br>
<br>
<a href="http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/portaudio/current/SOURCES/portaudio-19-alsa_pulse.patch?revision=313993&view=markup" target="_blank">http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/portaudio/current/SOURCES/portaudio-19-alsa_pulse.patch?revision=313993&view=markup</a><br>
<br>
With this patch applied, you app should work nicely with the following<br>
pipeline:<br>
<br>
App -> PortAudio -> Alsa -> Pulse -> Sound H/W -> Ears -> Brain<br>
<div class="Ih2E3d"><br>
> I'd admit that I don't know much about audio playback and sound<br>
> architecture... But should I be using PulseAudio instead of PortAudio,<br>
> or should I use some specific backend in PortAudio, or a specific<br>
> setting for ALSA when using it from PortAudio?<br>
><br>
> What is the most portable and easy way to audio playback, from the<br>
> applications developers perspective?<br>
> And how do I avoid blocking other applications from playing sounds?<br>
<br>
</div>Lennart wrote a nice article about Audio APIs recently:<br>
<a href="http://0pointer.de/blog/projects/guide-to-sound-apis.html" target="_blank">http://0pointer.de/blog/projects/guide-to-sound-apis.html</a><br>
<br>
May make for some nice reading :)<br>
<br>
Col<br>
<br>
--<br>
<br>
Colin Guthrie<br>
gmane(at)<a href="http://colin.guthr.ie" target="_blank">colin.guthr.ie</a><br>
<a href="http://colin.guthr.ie/" target="_blank">http://colin.guthr.ie/</a><br>
<br>
Day Job:<br>
Tribalogic Limited [<a href="http://www.tribalogic.net/" target="_blank">http://www.tribalogic.net/</a>]<br>
Open Source:<br>
Mandriva Linux Contributor [<a href="http://www.mandriva.com/" target="_blank">http://www.mandriva.com/</a>]<br>
PulseAudio Hacker [<a href="http://www.pulseaudio.org/" target="_blank">http://www.pulseaudio.org/</a>]<br>
Trac Hacker [<a href="http://trac.edgewall.org/" target="_blank">http://trac.edgewall.org/</a>]<br>
<br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@mail.0pointer.de">pulseaudio-discuss@mail.0pointer.de</a><br>
<a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br>
</blockquote></div><br>