copy.c

来自「linux下录音程序」· C语言 代码 · 共 71 行

C
71
字号
/* * 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 */void copy_getopts(effp, n, argv) eff_t effp;int n;char **argv;{	if (n)		fail("Copy effect takes no options.");}/* * Start processing */void 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. */void copy_flow(effp, ibuf, obuf, isamp, osamp)eff_t effp;LONG *ibuf, *obuf;int *isamp, *osamp;{	int done;		done = ((*isamp < *osamp) ? *isamp : *osamp);	memcpy(obuf, ibuf, done * sizeof(LONG));	*isamp = *osamp = done;	return;}/* * Do anything required when you stop reading samples.   * Don't close input file!  */void copy_stop(effp)eff_t effp;{	/* nothing to do */}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?