Csound Csound-dev Csound-tekno Search About

[Cs-dev] Some API questions

Date2013-04-24 06:41
FromAndres Cabrera
Subject[Cs-dev] Some API questions
AttachmentsNone  None  
Hi,

Some questions:

1) Can csoundRtRecordUserData and csoundRtPlayUserData be moved out of the public API?
These functions are used within audio RT modules to pass module specific data, so it seems weird to have them as part of the public API. It is also unsafe to allow public access to that.

2) How is csoundSetAudioDeviceCallback used?

3) Should csoundLocalizeString be part of the public API? I see no reason to have it there.

4) Can the cscore functions in the API (2 functions) be moved to the cscore header? I think they can be confusing to most users, and having them in the cscore header might be better.

Cheers,
Andrés

Date2013-04-24 19:32
FromVictor Lazzarini
SubjectRe: [Cs-dev] Some API questions
On 24 Apr 2013, at 06:41, Andres Cabrera wrote:

> Hi,
> 
> Some questions:
> 
> 1) Can csoundRtRecordUserData and csoundRtPlayUserData be moved out of the public API?
> These functions are used within audio RT modules to pass module specific data, so it seems weird to have them as part of the public API. It is also unsafe to allow public access to that.

I think these are there so hosts can implement their own IO modules without having to tap spout or the outputBuffer etc. I think it is better to leave them there.

> 2) How is csoundSetAudioDeviceCallback used?

where is this function? I don't see it.

> 3) Should csoundLocalizeString be part of the public API? I see no reason to have it there.

Good question, I am not sure, but maybe John has an opinion.


> 4) Can the cscore functions in the API (2 functions) be moved to the cscore header? I think they can be confusing to most users, and having them in the cscore header might be better.

Again, I don't know.

> 
> Cheers,
> Andrés
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service 
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-04-25 01:19
FromAndres Cabrera
SubjectRe: [Cs-dev] Some API questions
AttachmentsNone  None  
Hi,

On Wed, Apr 24, 2013 at 11:32 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:

On 24 Apr 2013, at 06:41, Andres Cabrera wrote:

> Hi,
>
> Some questions:
>
> 1) Can csoundRtRecordUserData and csoundRtPlayUserData be moved out of the public API?
> These functions are used within audio RT modules to pass module specific data, so it seems weird to have them as part of the public API. It is also unsafe to allow public access to that.

I think these are there so hosts can implement their own IO modules without having to tap spout or the outputBuffer etc. I think it is better to leave them there.


Couldn't this be served by csoundCreateGlobalVariable already instead of having this dedicated function?

 
> 2) How is csoundSetAudioDeviceCallback used?

where is this function? I don't see it.

Sorry, I meant csoundSetAudioDeviceListCallback. How is this used? Is it also set by rt modules, and then maybe it shouldn't be part of the public API?


> 3) Should csoundLocalizeString be part of the public API? I see no reason to have it there.

Good question, I am not sure, but maybe John has an opinion.


> 4) Can the cscore functions in the API (2 functions) be moved to the cscore header? I think they can be confusing to most users, and having them in the cscore header might be better.

Again, I don't know.

>
> Cheers,
> Andrés
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2013-04-25 07:16
FromVictor Lazzarini
SubjectRe: [Cs-dev] Some API questions
AttachmentsNone  None  
This sets the callback used in listDevices. Possibly not needed here.

On 25 Apr 2013, at 01:19, Andres Cabrera wrote:

Sorry, I meant csoundSetAudioDeviceListCallback. How is this used? Is it also set by rt modules, and then maybe it shouldn't be part of the public API?



Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2013-04-25 07:20
FromVictor Lazzarini
SubjectRe: [Cs-dev] Some API questions
AttachmentsNone  None  
We could, the only thing is that plugin code will not serve completely as an example for people trying to use the code (ie. plugin API not mirrored in Csound API in this case),
but it's not an issue possibly.
On 25 Apr 2013, at 01:19, Andres Cabrera wrote:

On Wed, Apr 24, 2013 at 11:32 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:

On 24 Apr 2013, at 06:41, Andres Cabrera wrote:

> Hi,
>
> Some questions:
>
> 1) Can csoundRtRecordUserData and csoundRtPlayUserData be moved out of the public API?
> These functions are used within audio RT modules to pass module specific data, so it seems weird to have them as part of the public API. It is also unsafe to allow public access to that.

I think these are there so hosts can implement their own IO modules without having to tap spout or the outputBuffer etc. I think it is better to leave them there.


Couldn't this be served by csoundCreateGlobalVariable already instead of having this dedicated function?

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2013-05-02 02:20
FromAndres Cabrera
SubjectRe: [Cs-dev] Some API questions
AttachmentsNone  None  
Hi,


On Wed, Apr 24, 2013 at 11:32 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>
> > 1) Can csoundRtRecordUserData and csoundRtPlayUserData be moved out of the public API?
> > These functions are used within audio RT modules to pass module specific data, so it seems weird to have them as part of the public API. It is also unsafe to allow public access to that.
>
> I think these are there so hosts can implement their own IO modules without having to tap spout or the outputBuffer etc. I think it is better to leave them there.
>

Would it be OK if I move them to csdl.h? That way it can still be used by rt modules but it's not there in the public host API? (This could apply to  csoundSetAudioDeviceListCallback as well as it is meant to be used by rt modules)

Cheers,
Andrés

Date2013-05-02 07:42
FromVictor Lazzarini
SubjectRe: [Cs-dev] Some API questions
AttachmentsNone  None  
I think so.

Victor
On 2 May 2013, at 02:20, Andres Cabrera wrote:

Hi,


On Wed, Apr 24, 2013 at 11:32 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>
> > 1) Can csoundRtRecordUserData and csoundRtPlayUserData be moved out of the public API?
> > These functions are used within audio RT modules to pass module specific data, so it seems weird to have them as part of the public API. It is also unsafe to allow public access to that.
>
> I think these are there so hosts can implement their own IO modules without having to tap spout or the outputBuffer etc. I think it is better to leave them there.
>

Would it be OK if I move them to csdl.h? That way it can still be used by rt modules but it's not there in the public host API? (This could apply to  csoundSetAudioDeviceListCallback as well as it is meant to be used by rt modules)

Cheers,
Andrés
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie