| Yes; the instr2 in David's code is being deactivated via turnoff2 but that
happens in instr1, and instr2 is running in the same k-cycle after the
turnoff. As far as I can tell at present turnoff2 is not removing the
instance of inst 2 although it has closed the files associated.
.....
removed instance of instr 2
fdlist for instr 2 (0x185e410): fd 0x52bcd0 in 0x185ef28
fdlist for instr 2 (0x185e410):
PERF ERROR in instr 2: diskin2: not initialised
al ar diskin2 "down.aif" 1 iskip 1 0 0
0 0
note aborted
This is not an area I understand!
==John (from monitoring window)
On Sun, 10 Dec 2006, Victor Lazzarini wrote:
> But turnoff2 is right in closing the file if there is
> no other instance of the instrument reading it, isn't
> it? Is the opcode being called after the instrument has
> been turned off?
>
> If so, I saw that happening with fout, where it looked
> like the opcode was being called after the instrument was
> shut off (by turnoff2 I think). Perhaps going one k-cycle
> too much.
>
> Victor
>
>>
>> Tracing, it seems that there is a call to sf_close from
>> deact/urnoff2 and after that the file descriptor has
>> vanished.
>>
>> #0 sf_close (sndfile=0x81846b8) at sndfile.c:416
>> #1 0x08052bcc in csoundFileClose (csound=0x80e1008,
>> fd=0x80eb1b8)
>> at Engine/envvar.c:1258
>> #2 0x08051cd7 in fdchclose (csound=0x80e1008,
>> ip=0x817fb10)
>> at Engine/auxfd.c:131
>> #3 0x0805bd01 in deact (csound=0x80e1008, ip=0x817fb10)
>> at Engine/insert.c:507 #4 0x0808e02e in turnoff2
>> (csound=0x80e1008, p=0x816e538)
>> at OOps/goto_ops.c:202
>> #5 0x0804ce4d in csoundPerform (csound=0x80e1008) at
>> Top/csound.c:1097 #6 0x0804b0e8 in main (argc=2,
>> argv=0xbffff084)
>> at frontends/csound/csound_main.c:109
>>
>> Then on the next cycle there is no file for diskin2 to
>> read. Anyone admit to changing turnoff2 or deact?
>>
>> fdchclose certainly writes the NULL into the structure.
>> It looks to me as if the turnoff2 is not removing the
>> diskin2 call.
>>
>> Anyone else?
>>
>> ==John ffitch
>>
>> ----------------------------------------------------------
>> --------------- Take Surveys. Earn Cash. Influence the
>> Future of IT Join SourceForge.net's Techsay panel and
>> you'll get the chance to share your opinions on IT &
>> business topics through brief surveys - and earn cash
>>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |