Csound Csound-dev Csound-tekno Search About

Portaudio on Linux with RT-Kernel?

Date2017-02-11 17:49
FromHlöðver Sigurðsson
SubjectPortaudio on Linux with RT-Kernel?
I am well into the new Csound book and I'm having a plenty of aha moments. As a result I may flood some questions in next days and weeks. But in the book it was stated that csound looks for Portaudio before anything else, so for testing I installed Portautio from source and re-compiled csound. I'm bad at benchmarking but I'm curious to know if callback portaudio would be a good realtime solution as linux user, and furthermore would it make sense to mix it with the RT-Kernel. I already get very low latency with high priority jack connection so maybe using portaudio would be slower than the results possible there.

Best,
Hlödver
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-02-11 18:00
FromTarmo Johannes
SubjectRe: Portaudio on Linux with RT-Kernel?
Hi,
To my experience portaudio is way worse in the sense of latency, I always use jack, but alsa is also better choice.
Please object if I got it wrong.
Tarmo


11.02.2017 19:50 kirjutas kuupäeval "Hlöðver Sigurðsson" <hlolli@gmail.com>:
I am well into the new Csound book and I'm having a plenty of aha moments. As a result I may flood some questions in next days and weeks. But in the book it was stated that csound looks for Portaudio before anything else, so for testing I installed Portautio from source and re-compiled csound. I'm bad at benchmarking but I'm curious to know if callback portaudio would be a good realtime solution as linux user, and furthermore would it make sense to mix it with the RT-Kernel. I already get very low latency with high priority jack connection so maybe using portaudio would be slower than the results possible there.

Best,
Hlödver
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-02-11 18:15
FromVictor Lazzarini
SubjectRe: Portaudio on Linux with RT-Kernel?
Same here.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 Feb 2017, at 18:00, Tarmo Johannes  wrote:
> 
> Hi,
> To my experience portaudio is way worse in the sense of latency, I always use jack, but alsa is also better choice.
> Please object if I got it wrong.
> Tarmo
> 
> 
> 11.02.2017 19:50 kirjutas kuupäeval "Hlöðver Sigurðsson" :
> I am well into the new Csound book and I'm having a plenty of aha moments. As a result I may flood some questions in next days and weeks. But in the book it was stated that csound looks for Portaudio before anything else, so for testing I installed Portautio from source and re-compiled csound. I'm bad at benchmarking but I'm curious to know if callback portaudio would be a good realtime solution as linux user, and furthermore would it make sense to mix it with the RT-Kernel. I already get very low latency with high priority jack connection so maybe using portaudio would be slower than the results possible there.
> 
> Best,
> Hlödver
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-02-11 18:21
FromHlöðver Sigurðsson
SubjectRe: Portaudio on Linux with RT-Kernel?
Thanks Tarmo and Victor, that was quickly resolved.

For further optimizing rt latency. In situations where audio quality is redundant, would the compiler flag --format=float help csound in rt or is it only for specifying audio file output.

2017-02-11 19:15 GMT+01:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
Same here.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 11 Feb 2017, at 18:00, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
>
> Hi,
> To my experience portaudio is way worse in the sense of latency, I always use jack, but alsa is also better choice.
> Please object if I got it wrong.
> Tarmo
>
>
> 11.02.2017 19:50 kirjutas kuupäeval "Hlöðver Sigurðsson" <hlolli@gmail.com>:
> I am well into the new Csound book and I'm having a plenty of aha moments. As a result I may flood some questions in next days and weeks. But in the book it was stated that csound looks for Portaudio before anything else, so for testing I installed Portautio from source and re-compiled csound. I'm bad at benchmarking but I'm curious to know if callback portaudio would be a good realtime solution as linux user, and furthermore would it make sense to mix it with the RT-Kernel. I already get very low latency with high priority jack connection so maybe using portaudio would be slower than the results possible there.
>
> Best,
> Hlödver
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-02-11 19:05
FromMichael Gogins
SubjectRe: Portaudio on Linux with RT-Kernel?
--format=float has no effect on the internals of Csound computations.
--float is for audio file output. In theory it could also apply to
real-time audio drivers but the effect should be undetectable and
would in any case depend upon the internals of the driver.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Feb 11, 2017 at 1:21 PM, Hlöðver Sigurðsson  wrote:
> Thanks Tarmo and Victor, that was quickly resolved.
>
> For further optimizing rt latency. In situations where audio quality is
> redundant, would the compiler flag --format=float help csound in rt or is it
> only for specifying audio file output.
>
> 2017-02-11 19:15 GMT+01:00 Victor Lazzarini :
>>
>> Same here.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>> > On 11 Feb 2017, at 18:00, Tarmo Johannes  wrote:
>> >
>> > Hi,
>> > To my experience portaudio is way worse in the sense of latency, I
>> > always use jack, but alsa is also better choice.
>> > Please object if I got it wrong.
>> > Tarmo
>> >
>> >
>> > 11.02.2017 19:50 kirjutas kuupäeval "Hlöðver Sigurðsson"
>> > :
>> > I am well into the new Csound book and I'm having a plenty of aha
>> > moments. As a result I may flood some questions in next days and weeks. But
>> > in the book it was stated that csound looks for Portaudio before anything
>> > else, so for testing I installed Portautio from source and re-compiled
>> > csound. I'm bad at benchmarking but I'm curious to know if callback
>> > portaudio would be a good realtime solution as linux user, and furthermore
>> > would it make sense to mix it with the RT-Kernel. I already get very low
>> > latency with high priority jack connection so maybe using portaudio would be
>> > slower than the results possible there.
>> >
>> > Best,
>> > Hlödver
>> > Csound mailing list Csound@listserv.heanet.ie
>> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> > https://github.com/csound/csound/issues Discussions of bugs and features can
>> > be posted here
>> > Csound mailing list Csound@listserv.heanet.ie
>> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> > https://github.com/csound/csound/issues Discussions of bugs and features can
>> > be posted here
>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here