[CSOUND-DEV:5310] 24bit on mac
| Date | 2004-09-13 23:32 |
| From | "Matt J. Ingalls" |
| Subject | [CSOUND-DEV:5310] 24bit on mac |
here is a fix for 24bit file creation on mac using sounddesignerII
files, it assumes the macplatform macro scheme i proposed a month or so
ago on the list:
=================================
sfheader.c line 1488:
if (O.filetyp==TYP_WAV || O.filetyp== TYP_AIFF || O.filetyp== TYP_AIFC
#if defined(MAC) /* sd2 file on mac */
|| O.sfheader
#endif
) {
====================================
btw, is there cvs setup for csound4?
-m |
| Date | 2004-09-14 02:14 |
| From | "Matt J. Ingalls" |
| Subject | [CSOUND-DEV:5312] Re: 24bit on mac |
found another related problem: in sfheader.c::readheader(), line 349:
if (ReadMacHeader(sfname,&fnch,&fsr,&fbpd) == 0) { /* get rsrc */
hdp->sr = fsr;
hdp->nchanls = fnch; /* record data */
hdp->sampsize = fbpd;
hdp->format = (fbpd == 4)?AE_FLOAT : AE_SHORT; /* 2 poss
fmts */
that last line should be changed to:
hdp->format = (fbpd == 4)?AE_LONG : AE_SHORT; /* 2
probably this is left over from the mills days when we hacked the rescale
code in there, but it really is not right, as all 32bit sounddesigner
files are LONG [sd2 does not support floating pt]
-m
On Mon, 13 Sep 2004, Matt J. Ingalls wrote:
>
> here is a fix for 24bit file creation on mac using sounddesignerII files, it
> assumes the macplatform macro scheme i proposed a month or so ago on the
> list:
>
> =================================
> sfheader.c line 1488:
>
> if (O.filetyp==TYP_WAV || O.filetyp== TYP_AIFF || O.filetyp== TYP_AIFC
> #if defined(MAC) /* sd2 file on mac */
> || O.sfheader
> #endif
> ) {
> ====================================
>
>
> btw, is there cvs setup for csound4?
>
>
> -m
>
> |
| Date | 2004-09-14 05:21 |
| From | Anthony Kozar |
| Subject | [CSOUND-DEV:5313] Re: 24bit on mac |
Thanks for the fixes, Matt ! Csound 4 code is in the csound module of CVS. Csound 5 code is naturally in the csound5 module. Anthony On 9/13/04 6:32 PM, Matt J. Ingalls |
| Date | 2004-09-16 00:45 |
| From | "Matt J. Ingalls" |
| Subject | [CSOUND-DEV:5322] Re: 24bit on mac |
> Csound 4 code is in the csound module of CVS. Csound 5 code is naturally in > the csound5 module. ok thanks, i found it [had only known about csound5 module] > > Anthony > > On 9/13/04 6:32 PM, Matt J. Ingalls |