[Cs-dev] Remaining problem with CsoundQt
Date | 2013-09-03 00:28 |
From | Michael Gogins |
Subject | [Cs-dev] Remaining problem with CsoundQt |
Attachments | None None |
I have fixed a lot of problems (mainly to do with the build configuration and the C++ABI) with CsoundQt for Csound 6.
However,there is a serious remaining problem. CsoundQt will perform a piece just fine, stop it, and perform it a second time. However, the second time, there is no sound.
I have established that the rtpa.c playopen_ function is called the first time, but not the second. Any ideas? Regards, Mike =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com |
Date | 2013-09-03 06:38 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
In the second run, is the selected audio output still portaudio or does it revert to the dummy driver? On 3 Sep 2013, at 00:28, Michael Gogins wrote: > I have fixed a lot of problems (mainly to do with the build configuration and the C++ABI) with CsoundQt for Csound 6. > > However,there is a serious remaining problem. CsoundQt will perform a piece just fine, stop it, and perform it a second time. However, the second time, there is no sound. > > I have established that the rtpa.c playopen_ function is called the first time, but not the second. > > Any ideas? > > Regards, > Mike > > =========================== > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk_______________________________________________ > 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 ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-09-03 12:34 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
Attachments | None None |
Elapsed time at end of score sort: real: 0.020s, CPU: 0.021s Csound version 6.00.1 (double samples) Sep 1 2013 graphics suppressed, ascii substituted 0dBFS level = 32768.0 orch now loaded audio buffered in 4096 sample-frame blocks unknown rtaudio module: 'PortAudio', using dummy module Why? What should be done about this? Regards, Mike =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Sep 3, 2013 at 1:38 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: In the second run, is the selected audio output still portaudio or does it revert to the dummy driver? |
Date | 2013-09-03 12:42 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
This means that something is preventing the loading of rtpa.dll and is a similar issue to what you had reported with portmidi (pmidi.dll). I wonder if this is something to do with the Windows code for loading modules (csmodule.c), I am actually wondering if any plugins are being loaded in the second run (you could check it by using a plugin opcode). You seem to have narrowed it down to this, I think you are near to cracking it. Victor On 3 Sep 2013, at 12:34, Michael Gogins wrote: > Elapsed time at end of score sort: real: 0.020s, CPU: 0.021s > Csound version 6.00.1 (double samples) Sep 1 2013 > graphics suppressed, ascii substituted > 0dBFS level = 32768.0 > orch now loaded > audio buffered in 4096 sample-frame blocks > unknown rtaudio module: 'PortAudio', using dummy module > > Why? What should be done about this? > > Regards, > Mike > > > > =========================== > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Tue, Sep 3, 2013 at 1:38 AM, Victor Lazzarini |
Date | 2013-09-03 12:58 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
Attachments | None None |
rtpa is loaded, and it is not unloaded before the second run begins. I verified this by setting catchpoints for load and unload in the debugger. Why don't you try debugging this on Windows?
Regards, Mike =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Sep 3, 2013 at 7:42 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: This means that something is preventing the loading of rtpa.dll and is a similar issue to what you |
Date | 2013-09-03 14:45 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
That message comes from Top/csound.c line 2174 It happens if csoundQueryGlobalVariable(csound, "_RTAUDIO") is null (among other cases) so are the globals destroyed? > This means that something is preventing the loading of rtpa.dll and is a > similar issue to what you > had reported with portmidi (pmidi.dll). I wonder if this is something to > do with the Windows code for loading modules > (csmodule.c), I am actually wondering if any plugins are being loaded in > the second run (you could check it by > using a plugin opcode). > > You seem to have narrowed it down to this, I think you are near to > cracking it. > > Victor > On 3 Sep 2013, at 12:34, Michael Gogins wrote: > >> Elapsed time at end of score sort: real: 0.020s, CPU: 0.021s >> Csound version 6.00.1 (double samples) Sep 1 2013 >> graphics suppressed, ascii substituted >> 0dBFS level = 32768.0 >> orch now loaded >> audio buffered in 4096 sample-frame blocks >> unknown rtaudio module: 'PortAudio', using dummy module >> >> Why? What should be done about this? >> >> Regards, >> Mike >> >> >> >> =========================== >> Michael Gogins >> Irreducible Productions >> http://michaelgogins.tumblr.com >> Michael dot Gogins at gmail dot com >> >> >> On Tue, Sep 3, 2013 at 1:38 AM, Victor Lazzarini >> |
Date | 2013-09-03 14:58 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
Attachments | None None |
I don't think any plugins are being loaded in the second run. But why not? A new instance of Csound has been created, so why aren't the plugins and other modules automatically reloaded? Regards, On Sep 3, 2013 7:42 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
This means that something is preventing the loading of rtpa.dll and is a similar issue to what you |
Date | 2013-09-03 16:02 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
I have no windows machine. On 3 Sep 2013, at 12:58, Michael Gogins wrote: > rtpa is loaded, and it is not unloaded before the second run begins. I verified this by setting catchpoints for load and unload in the debugger. > > Why don't you try debugging this on Windows? > > Regards, > Mike > > > > =========================== > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Tue, Sep 3, 2013 at 7:42 AM, Victor Lazzarini |
Date | 2013-09-03 16:04 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
Attachments | None None |
CsoundQt on Windows creates a new instance of Csound and a new instance of CsoundPerformanceThread for each performance run. Presumably this destroys the globals, and then re-creates them. The command line for each run is the same (contains -odac).
=========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Sep 3, 2013 at 9:45 AM, <jpff@cs.bath.ac.uk> wrote: That message comes from Top/csound.c line 2174 |
Date | 2013-09-03 16:06 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
Attachments | None None |
As I have no OS X machine... mea maxima culpa... To repeat my question, why are modules not loaded when the second instance of Csound is created? I think this is the problem. Is there an API function to force plugins to load?
Regards, Mike =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Sep 3, 2013 at 11:04 AM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2013-09-03 16:06 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
yes, the variable will not be filled with the audio backend name if that is not loaded. The problem appears to be in loading the plugins. Victor On 3 Sep 2013, at 14:45, jpff@cs.bath.ac.uk wrote: > That message comes from Top/csound.c line 2174 > It happens if csoundQueryGlobalVariable(csound, "_RTAUDIO") is null (among > other cases) so are the globals destroyed? > > > >> This means that something is preventing the loading of rtpa.dll and is a >> similar issue to what you >> had reported with portmidi (pmidi.dll). I wonder if this is something to >> do with the Windows code for loading modules >> (csmodule.c), I am actually wondering if any plugins are being loaded in >> the second run (you could check it by >> using a plugin opcode). >> >> You seem to have narrowed it down to this, I think you are near to >> cracking it. >> >> Victor >> On 3 Sep 2013, at 12:34, Michael Gogins wrote: >> >>> Elapsed time at end of score sort: real: 0.020s, CPU: 0.021s >>> Csound version 6.00.1 (double samples) Sep 1 2013 >>> graphics suppressed, ascii substituted >>> 0dBFS level = 32768.0 >>> orch now loaded >>> audio buffered in 4096 sample-frame blocks >>> unknown rtaudio module: 'PortAudio', using dummy module >>> >>> Why? What should be done about this? >>> >>> Regards, >>> Mike >>> >>> >>> >>> =========================== >>> Michael Gogins >>> Irreducible Productions >>> http://michaelgogins.tumblr.com >>> Michael dot Gogins at gmail dot com >>> >>> >>> On Tue, Sep 3, 2013 at 1:38 AM, Victor Lazzarini >>> |
Date | 2013-09-03 16:09 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
That is OK, I don't think the globals are the problem, but the fact that the plugins are not loading in the second time. Victor On 3 Sep 2013, at 16:04, Michael Gogins wrote: > CsoundQt on Windows creates a new instance of Csound and a new instance of CsoundPerformanceThread for each performance run. Presumably this destroys the globals, and then re-creates them. The command line for each run is the same (contains -odac). > > > =========================== > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Tue, Sep 3, 2013 at 9:45 AM, |
Date | 2013-09-03 16:10 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
Attachments | None None |
Has Csound changed such that Csound only loads plugins one time in a process? Even if multiple instances of Csound are created? if that is the case, then either this should be changed back to the way it was, or there needs to be an API function for re-loading the plugins and other modules. Regards, Mike =========================== Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Tue, Sep 3, 2013 at 11:06 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: yes, the variable will not be filled with the audio backend name if that is not loaded. The problem appears to be in loading the |
Date | 2013-09-03 16:17 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
I don't know, all I can say is that is a Windows issue, because they do load OK on OSX and Linux, on repeated runs. Victor On 3 Sep 2013, at 16:06, Michael Gogins wrote: > As I have no OS X machine... mea maxima culpa... > > To repeat my question, why are modules not loaded when the second instance of Csound is created? I think this is the problem. Is there an API function to force plugins to load? > > Regards, > Mike > > > > =========================== > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Tue, Sep 3, 2013 at 11:04 AM, Michael Gogins |
Date | 2013-09-03 16:17 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
No, I don't think we touched that at all. Victor On 3 Sep 2013, at 16:10, Michael Gogins wrote: > Has Csound changed such that Csound only loads plugins one time in a process? Even if multiple instances of Csound are created? > > if that is the case, then either this should be changed back to the way it was, or there needs to be an API function for re-loading the plugins and other modules. > > Regards, > Mike > > > > > =========================== > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Tue, Sep 3, 2013 at 11:06 AM, Victor Lazzarini |
Date | 2013-09-03 16:45 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
Attachments | None None |
On the other platforms, Csound is not created for each run by Csound On Windows, it is. So what do we do? On Sep 3, 2013 11:17 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
I don't know, all I can say is that is a Windows issue, because they do load OK on OSX and Linux, on repeated runs. |
Date | 2013-09-03 16:53 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
> As I have no OS X machine... mea maxima culpa... > > To repeat my question, why are modules not loaded when the second instance > of Csound is created? I think this is the problem. Is there an API > function > to force plugins to load? > > Regards, > Mike > There is a list of loaded modules; is that being maintained properly? (typing in ignorance) ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-09-03 16:57 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
Is that right? I don't know about CsoundQT, but on OSX, I have recreated Csound many times in a single Python run and there are no issues. Victor On 3 Sep 2013, at 16:45, Michael Gogins wrote: > On the other platforms, Csound is not created for each run by Csound > > On Windows, it is. So what do we do? > On Sep 3, 2013 11:17 AM, "Victor Lazzarini" |
Date | 2013-09-03 17:06 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Remaining problem with CsoundQt |
I have tested this on OSX with a simple program that recreates csound and runs 4 times #include |