Category : C Source Code
Archive   : SOX.ZIP
Filename : COPY.C

 
Output of file : COPY.C contained in archive : SOX.ZIP
/*
* July 5, 1991
* Copyright 1991 Lance Norskog And Sundry Contributors
* This source code is freely redistributable and may be used for
* any purpose. This copyright notice must be maintained.
* Lance Norskog And Sundry Contributors are not responsible for
* the consequences of using this software.
*/

/*
* Sound Tools skeleton effect file.
*/

#include "st.h"

/*
* Process options
*/
copy_getopts(effp, n, argv)
eff_t effp;
int n;
char **argv;
{
if (n)
fail("Copy effect takes no options.");
}

/*
* Start processing
*/
copy_start(effp)
eff_t effp;
{
/* nothing to do */
/* stuff data into delaying effects here */
}

/*
* Read up to len samples from file.
* Convert to signed longs.
* Place in buf[].
* Return number of samples read.
*/

copy_flow(effp, ibuf, obuf, isamp, osamp)
eff_t effp;
long *ibuf, *obuf;
int *isamp, *osamp;
{
int done;

done = ((*isamp < *osamp) ? *isamp : *osamp);
bcopy(ibuf, obuf, done * sizeof(long));
*isamp = *osamp = done;
return done;
}

/*
* Do anything required when you stop reading samples.
* Don't close input file!
*/
copy_stop(effp)
eff_t effp;
{
/* nothing to do */
}






  3 Responses to “Category : C Source Code
Archive   : SOX.ZIP
Filename : COPY.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/