| Yes, that does it, thanks.
However, I'm thinking this opcode should close the file when it is
called as well as on Csound deinit. Is that possible? It's currently
not working.
The file below, instead of producing only one line with the last
invocation of the instrument, produces a file when Csound is closed
contaning:
i 1 0.000000 1.000000 8.828730
i 1 15.000090 1.000000 2.913418
i 1 30.000181 1.000000 9.257107
sr = 44100
ksmps = 128
nchnls = 2
0dbfs = 1
instr 1
ires random 0, 10
ihandle fiopen "test.txt", 0
fouti ihandle, 0, 1, ires
ficlose ihandle
endin
f 0 3600
i 1 0 1
i 1 15 1
i 1 30 1
Cheers,
Andrés
On Sun, Oct 18, 2009 at 10:44 AM, victor wrote:
> I think this line (449) what is wrong:
>
> pp->file_opened[idx].refCount = 0x80000001U;
>
> it should be 0; when fout_deinit_callback() is called it checks
> whether the refCount is 0.
>
> Could you test if this fixes your problem?
>
> Victor
>
>
>
>
>
>
> ----- Original Message -----
> From: "Andres Cabrera"
> To: "Developer discussions"
> Sent: Sunday, October 18, 2009 8:48 AM
> Subject: [Cs-dev] ficlose not cleaning up properly?
>
>
> Hi,
>
> I've had problems with ficlose, which is aparently not closing
> properly on csoundCleanup(), where I think it should. I need to
> destroyCsound() for the file buffer to be flushed to disk. It would
> even be good if the buffer could be flushed when ficlose is called,
> not wait until csound cleans up, that way something that has been
> written can be read in the same csound run.
>
> can someone take a look?
>
> Cheers,
> Andrés
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
--
Andrés
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |