Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] more SWIG generated code issues

Date2005-11-17 17:43
FromVictor Lazzarini
SubjectRe: [Cs-dev] more SWIG generated code issues
I don't think anyone will try to mix SWIG and by hand wrappers. I think we 
should exclude everything that
does not work at present. If anyone offers to add new typemaps to make 
these things work, fine. I really
don't like to see an API that only half works. It is better to have a 
limited (in relation to C) API than to have
something that an unaware user might think works. But that's my opinion. We 
should perhaps have a vote
to decide on this.

Victor

At 16:10 17/11/2005, you wrote:
>Excluding APIs is also not so great. It might sound like a good idea, but 
>out of sight, out of mind. Once there is no wrapper, nobody will remember 
>that there could be one, or if they do, they will assume it is not 
>possible with SWIG and go off and do it by hand, and then later on it will 
>break. Reality check: Enough of the API has been working through Python 
>and Java to use Csound from those languages for several years now, 
>automatically tracking changes, with almost no effort expended.

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-17 17:54
FromSteven Yi
SubjectRe: [Cs-dev] more SWIG generated code issues
AttachmentsNone  

Date2005-11-19 17:17
FromIstvan Varga
SubjectRe: [Cs-dev] more SWIG generated code issues
Victor Lazzarini wrote:

> I don't think anyone will try to mix SWIG and by hand wrappers. I think 
> we should exclude everything that does not work at present.

As an experiment, I did add code to the Python interface to avoid
wrapping functions that do not work, or are useless or redundant,
with plans to extend the selection of API functions to other languages
as well. However, it seems that someone reverted most of the changes;
that is fine with me, though, as I know which functions work and which
ones do not, anyway.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-22 10:22
FromVictor Lazzarini
Subject[Cs-dev] rtpa.c
whoever did the changes to rtpa.c please undo them, as they have
broken it on OSX (and on ASIO, I suspect). Please revert the file to
the state it was on Friday evening as it was working then on both
Windows and OSX. I did not check Linux, but I expect it to have been
working there as well.


Dr Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-22 11:54
FromIstvan Varga
SubjectRe: [Cs-dev] rtpa.c
AttachmentsNone  

Date2005-11-22 12:10
FromVictor Lazzarini
SubjectRe: [Cs-dev] rtpa.c
It is not working on the Mac. The introduction of the paused
member was to allow for smooth pausing on Windows, both
ASIO and MME. Pausing was already smooth on the Mac and
what I did did not affect the performance on that platform. #ifdefing it
to MAC defeats its purpose. The code was working on those two
platforms.

However later changes broke and it's not working now. I have restored the
old code locally from a backup and it works, but I am not
putting into CVS, so if you could restore the code back to that state,
I would be grateful.

The pausing on Windows was not smooth, and I discovered it
when testing the Java CSDPlayer and a Tk example. If you have
a better solution for that platform, by all means introduce it. But
bring back the OSX code to when it was working. You can take
the pause member away, it does not affect the OSX performance.

Victor


At 11:54 22/11/2005, you wrote:
>On Tuesday 22 November 2005 11:22, Victor Lazzarini wrote:
>
> > whoever did the changes to rtpa.c please undo them, as they have
> > broken it on OSX (and on ASIO, I suspect). Please revert the file to
> > the state it was on Friday evening as it was working then on both
> > Windows and OSX. I did not check Linux, but I expect it to have been
> > working there as well.
>
>Actually, the file was last changed on Nov 17, so it is already in the
>same state as on Friday evening (which was one day later). The relevant
>changes may be those related to adding 'paused' to the structure
>PA_BLOCKING_STREAM, and I have #ifdef'd those out on platforms other
>than OS X as they tend to make real time performance worse and introduce
>more dropouts. I also made changes to improve pausing on platforms other
>than the Mac, but it is exactly that system where your original code
>is preserved. See also:
>http://cvs.sourceforge.net/viewcvs.py/csound/csound5/InOut/rtpa.c?r1=1.74&r2=1.75
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
>Register for a JBoss Training Course.  Free Certification Exam
>for All Training Attendees Through End of 2005. For more info visit:
>http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-22 13:03
FromVictor Lazzarini
SubjectRe: [Cs-dev] rtpa.c
I think the problem is here.  WaitThreadLock must be returning
non-zero. This code was not there before. When playing
with -odac -iadc, it does not work. It works with -odac only. .

  err = csound->WaitThreadLock(pabs->paLock, (size_t) 500);

(...)

if (!err) {
            do {
            paOutput[i] = pabs->outputBuffer[i];          paOutput[i] = 
pabs->outputBuffer[i];
            } while (++i < n);
         }

At 12:10 22/11/2005, you wrote:
>It is not working on the Mac. The introduction of the paused
>member was to allow for smooth pausing on Windows, both
>ASIO and MME. Pausing was already smooth on the Mac and
>what I did did not affect the performance on that platform. #ifdefing it
>to MAC defeats its purpose. The code was working on those two
>platforms.
>
>However later changes broke and it's not working now. I have restored the
>old code locally from a backup and it works, but I am not
>putting into CVS, so if you could restore the code back to that state,
>I would be grateful.
>
>The pausing on Windows was not smooth, and I discovered it
>when testing the Java CSDPlayer and a Tk example. If you have
>a better solution for that platform, by all means introduce it. But
>bring back the OSX code to when it was working. You can take
>the pause member away, it does not affect the OSX performance.
>
>Victor
>
>
>At 11:54 22/11/2005, you wrote:
>>On Tuesday 22 November 2005 11:22, Victor Lazzarini wrote:
>>
>> > whoever did the changes to rtpa.c please undo them, as they have
>> > broken it on OSX (and on ASIO, I suspect). Please revert the file to
>> > the state it was on Friday evening as it was working then on both
>> > Windows and OSX. I did not check Linux, but I expect it to have been
>> > working there as well.
>>
>>Actually, the file was last changed on Nov 17, so it is already in the
>>same state as on Friday evening (which was one day later). The relevant
>>changes may be those related to adding 'paused' to the structure
>>PA_BLOCKING_STREAM, and I have #ifdef'd those out on platforms other
>>than OS X as they tend to make real time performance worse and introduce
>>more dropouts. I also made changes to improve pausing on platforms other
>>than the Mac, but it is exactly that system where your original code
>>is preserved. See also:
>>http://cvs.sourceforge.net/viewcvs.py/csound/csound5/InOut/rtpa.c?r1=1.74&r2=1.75
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
>>Register for a JBoss Training Course.  Free Certification Exam
>>for All Training Attendees Through End of 2005. For more info visit:
>>http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
>>_______________________________________________
>>Csound-devel mailing list
>>Csound-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>Victor Lazzarini
>Music Technology Laboratory
>Music Department
>National University of Ireland, Maynooth
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
>Register for a JBoss Training Course.  Free Certification Exam
>for All Training Attendees Through End of 2005. For more info visit:
>http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-22 13:11
FromIstvan Varga
SubjectRe: [Cs-dev] rtpa.c
AttachmentsNone  

Date2005-11-22 13:15
FromIstvan Varga
SubjectRe: [Cs-dev] rtpa.c
AttachmentsNone  

Date2005-11-22 13:32
FromVictor Lazzarini
SubjectRe: [Cs-dev] rtpa.c
It's working again.

At 13:15 22/11/2005, you wrote:
>On Tuesday 22 November 2005 14:03, Victor Lazzarini wrote:
>
> > I think the problem is here.  WaitThreadLock must be returning
> > non-zero. This code was not there before. When playing
> > with -odac -iadc, it does not work. It works with -odac only. .
> >
> >   err = csound->WaitThreadLock(pabs->paLock, (size_t) 500);
>
>I suspected that (and in fact it is now disabled on OS X), but
>if csoundWaitThreadLock() returns non-zero when it should not,
>then the Mac version of pthread_mutex_lock() may be buggy.
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
>Register for a JBoss Training Course.  Free Certification Exam
>for All Training Attendees Through End of 2005. For more info visit:
>http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-22 13:42
FromVictor Lazzarini
SubjectRe: [Cs-dev] rtpa.c
Unfortunately, pausing is not smooth on Windows. With MME, it is sometimes
repeating buffers and with ASIO is worse. I just tested it.



Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-22 14:36
FromIstvan Varga
SubjectRe: [Cs-dev] rtpa.c
AttachmentsNone  

Date2005-11-22 14:49
FromVictor Lazzarini
SubjectRe: [Cs-dev] rtpa.c
No my portaudio is not up-to-date and yes the artifacts are short-lived.
They are worse on ASIO.

Victor

At 14:36 22/11/2005, you wrote:
>On Tuesday 22 November 2005 14:42, Victor Lazzarini wrote:
>
> > Unfortunately, pausing is not smooth on Windows. With MME, it is sometimes
> > repeating buffers and with ASIO is worse. I just tested it.
>
>Do the artifacts occur only for a short time (at most 0.5 seconds) after
>pausing, or continuously ? Do you have an up to date PortAudio version
>(I noticed that the one in the MSVC Csound 5 package is more than a year
>old) ?
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
>Register for a JBoss Training Course.  Free Certification Exam
>for All Training Attendees Through End of 2005. For more info visit:
>http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-22 15:05
FromVictor Lazzarini
SubjectRe: [Cs-dev] rtpa.c
I have downloaded, built and installed a new portaudio. No change after
that.
Victor

At 14:49 22/11/2005, you wrote:
>No my portaudio is not up-to-date and yes the artifacts are short-lived.
>They are worse on ASIO.
>
>Victor
>
>At 14:36 22/11/2005, you wrote:
>>On Tuesday 22 November 2005 14:42, Victor Lazzarini wrote:
>>
>> > Unfortunately, pausing is not smooth on Windows. With MME, it is sometimes
>> > repeating buffers and with ASIO is worse. I just tested it.
>>
>>Do the artifacts occur only for a short time (at most 0.5 seconds) after
>>pausing, or continuously ? Do you have an up to date PortAudio version
>>(I noticed that the one in the MSVC Csound 5 package is more than a year
>>old) ?
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
>>Register for a JBoss Training Course.  Free Certification Exam
>>for All Training Attendees Through End of 2005. For more info visit:
>>http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
>>_______________________________________________
>>Csound-devel mailing list
>>Csound-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>Victor Lazzarini
>Music Technology Laboratory
>Music Department
>National University of Ireland, Maynooth
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
>Register for a JBoss Training Course.  Free Certification Exam
>for All Training Attendees Through End of 2005. For more info visit:
>http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-22 15:33
FromIstvan Varga
SubjectRe: [Cs-dev] rtpa.c
AttachmentsNone  

Date2005-11-22 16:05
FromVictor Lazzarini
SubjectRe: [Cs-dev] rtpa.c
Better on ASIO, only getting now the odd single glitch when
pausing, but when restarting, it plays without any artefacts
(-o dac, not using -i adc). Problems still with MME.

Also if I run with -odac -iadc, then there is a train of clicks
when I pause (on ASIO).

Victor

At 15:33 22/11/2005, you wrote:
>On Tuesday 22 November 2005 14:42, Victor Lazzarini wrote:
>
> > Unfortunately, pausing is not smooth on Windows. With MME, it is sometimes
> > repeating buffers and with ASIO is worse. I just tested it.
>
>Does it improve now ?
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
>Register for a JBoss Training Course.  Free Certification Exam
>for All Training Attendees Through End of 2005. For more info visit:
>http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-11-22 16:33
FromIstvan Varga
SubjectRe: [Cs-dev] rtpa.c
AttachmentsNone