From: Adrian G. <adr...@go...> - 2009-05-18 20:51:29
|
Hi Rob, thanks for your fast reply. I will try this. My problem with the code was though, that I couldn't fill in all the details in the signal-info. Where do I fill in the encoding and from where I do I know the sample-length ? Up to now, it would look like this: struct sox_format_t inFormat, outFormat; struct sox_signalinfo_t inInfo; inInfo.channels = 2; inInfo.length = 0; inInfo.precision = 16; inInfo.rate = 44100; sox_format_init(); inFormat = sox_open_read(file.latin1(), inInfo, "RAW"); But where to put the endianess ? There is no field for that in the signalinfo-struct. Best Regards, Adrian On Mon, May 18, 2009 at 9:24 AM, robs <aq...@ya...> wrote: > > --- On Fri, 15/5/09, Adrian Glaubitz <adr...@go...> wrote: >> It should only be a matter of opening the file with >> sox_open_read() >> with the proper sox_signalinfo and directly writing it to >> disk with >> sox_open_write(), right ? > > You should be able to base the code on example0.c from the source code distribution: remove the 2 effects, and add your signal info as appropriate. > > Cheers, > Rob > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Sox-users mailing list > Sox...@li... > https://lists.sourceforge.net/lists/listinfo/sox-users > |