Csound Csound-dev Csound-tekno Search About

[Cs-dev] Files in util1 and util2

Date2005-06-13 11:49
FromIstvan Varga
Subject[Cs-dev] Files in util1 and util2
Should the unused copy of old utility files that were moved to util/
but are still left in util1 or util2 be deleted ?


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-13 12:58
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Files in util1 and util2
They should be deleted from util2 as they get utilised. I was just
waiting for a decent delay to be sure the new stuff worked.

What changes did you make in xtrct?  How to they change things?  The
old code seemed Ok to me.

==John ffitch


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-13 13:20
FromIstvan Varga
SubjectRe: [Cs-dev] Files in util1 and util2
jpff@cs.bath.ac.uk wrote:

> They should be deleted from util2 as they get utilised. I was just
> waiting for a decent delay to be sure the new stuff worked.
> 
> What changes did you make in xtrct?  How to they change things?  The
> old code seemed Ok to me.

In additon to a few minor fixes to bugs that were introduced while
changing the code to use libsndfile, I added this code for opening the
output file:

     fd = NULL;
     if (strcmp(csound->oparms->outfilename, "stdout") == 0 ||
         strcmp(csound->oparms->outfilename, "-") == 0) {
       outfd = sf_open_fd(1, SFM_WRITE, &sfinfo, 0);
       if (outfd != NULL) {
         fd = csound->CreateFileHandle(csound, &outfd, CSFILE_SND_W, "stdout");
         if (fd == NULL) {
           sf_close(outfd);
           csound->Die(csound, Str("Memory allocation failure"));
         }
       }
     }
     else
       fd = csound->FileOpen(csound, &outfd, CSFILE_SND_W,
                                     csound->oparms->outfilename, &sfinfo,
                                     "SFDIR");
     if (fd == NULL)
       csound->Die(csound, Str("Failed to open output file %s"),
                           csound->oparms->outfilename);

Also removed any other calls to sf_close().



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net