From owner-freebsd-ports Sun Nov 7 19:35:31 1999 Delivered-To: freebsd-ports@freebsd.org Received: from tokyonet-entrance.astec.co.jp (tokyonet-entrance.astec.co.jp [202.239.16.2]) by hub.freebsd.org (Postfix) with ESMTP id 393E314D5C for ; Sun, 7 Nov 1999 19:34:51 -0800 (PST) (envelope-from nakai@internetsolutions.co.jp) Received: from amont.astec.co.jp (amont.astec.co.jp [172.20.10.1]) by tokyonet-entrance.astec.co.jp (8.9.1+3.0W/3.7W-astecMX2.3) with ESMTP id MAA06883; Mon, 8 Nov 1999 12:34:45 +0900 (JST) Received: from internetsolutions.co.jp (isg29.astec.co.jp [172.20.70.229]) by amont.astec.co.jp (8.7.6/3.6W-astecMX2.4) with ESMTP id MAA26726; Mon, 8 Nov 1999 12:34:44 +0900 (JST) Message-ID: <382644D3.B96C604A@internetsolutions.co.jp> Date: Mon, 08 Nov 1999 12:34:43 +0900 From: Yukihiro Nakai Organization: InternetSolutions, Inc. X-Mailer: Mozilla 4.5 [ja] (Win98; I) X-Accept-Language: ja MIME-Version: 1.0 To: Sergey Shkonda Cc: ports@freebsd.org Subject: Re: patch for audio/gogo References: <199911050925.LAA39130@bcs3.bcs.zp.ua> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I just forwarded your mail to the original author(s). He said the version 2.22 support RAW-PCM. It doesn't seem to be applied your patch, but he also said thanks to you. I've commited the gogo 2.22 port just now. Thanks. -- Nakai Sergey Shkonda wrote: > > I don't like to use sox before compressing audio from CD's > > The following patch allows gogo to compress raw audio data > .cdr, .cda, .raw files treated as 16 bit stereo 44100 Hz audio > without header. > > -- > Sergey Shkonda > > --- musenc.c.orig Fri Oct 22 05:15:10 1999 > +++ musenc.c Thu Nov 4 17:20:09 1999 > @@ -597,6 +597,9 @@ > MPGE_detectConfigure() > { > int freq, size, bit, channel; > +#ifdef __unix__ > + int plaindata = 0; > +#endif > > > if( musicin != NULL ) > @@ -607,6 +610,21 @@ > musicin = stdin; > totalframes = -1; > } else { > + /* check input file extensions */ > +#ifdef __unix__ > + int l; > + l = strlen(szInFile); > + if (l > 4) > + if ( !strcasecmp(szInFile+l-4, ".cda") || > + !strcasecmp(szInFile+l-4, ".cdr") || > + !strcasecmp(szInFile+l-4, ".raw") ) > + { > + bit = 16; > + freq = 44100; > + channel = 2; > + plaindata = 1; > + } > +#endif > musicin = fopen( szInFile, "rb" ); > if( !musicin ) > return ME_INFILE_NOFOUND; > @@ -625,6 +642,9 @@ > } > nEncodeFreq = nInputFreq; > }else > +#endif > +#ifdef __unix__ > + if (!plaindata) > #endif > if( !WAV_checkFMT( musicin, &size, &bit, &freq, &channel) ){ > fclose( musicin ); > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ports" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message