⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 get_sf.c

📁 speech signal process tools
💻 C
字号:
/*  This material contains proprietary software of Entropic Speech, Inc.     Any reproduction, distribution, or publication without the prior	     written permission of Entropic Speech, Inc. is strictly prohibited.  Any public distribution of copies of this work authorized in writing by  Entropic Speech, Inc. must bear the notice			 								      "Copyright (c) 1988 Entropic Speech, Inc.; All rights reserved"  get_sf: get sampling frequency from sampled data file  written by: David Burton*/#ifndef lintstatic char *sccs_id = "@(#)get_sf.c	1.2 1/6/93 ESI";#endif#include <stdio.h>#include <esps/esps.h>#include <esps/sd.h>#include <esps/unix.h>extern char *optarg;extern int optind;int debug_level = 0;main (argc, argv)char **argv;{    char *in_file = NULL, *eopen ();    float sf;    struct header *h;    FILE *strm;    if (argc != 2) {	Fprintf (stderr, "Usage: %s  file.sd\n", *argv);	exit (1);    }    in_file = argv[1];    in_file = eopen (*argv, in_file, "r", 0, 0, &h, &strm);    (void) fclose (strm);    sf = h->hd.sd->sf;    Fprintf (stdout, "%d", (int)sf);    return(0);}

⌨️ 快捷键说明

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