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

📄 wrsamp.c

📁 about sound recognition.i want to downlod
💻 C
字号:
/** * @file   wrsamp.c * @author Akinobu LEE * @date   Tue Feb 15 00:58:47 2005 * * <JA> * @brief  不兰侨妨误を big endian のバイトオ〖ダ〖で今き哈む * </JA> * <EN> * @brief  Write waveform data in big endian * </EN> * * $Revision: 1.3 $ *  *//* * Copyright (c) 1991-2006 Kawahara Lab., Kyoto University * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology * Copyright (c) 2005-2006 Julius project team, Nagoya Institute of Technology * All rights reserved */#include <sent/stddefs.h>#include <sent/speech.h>/**  * Write waveform data in big endian to a file descriptor *  * @param fd [in] file descriptor * @param buf [in] array of speech data * @param len [in] length of above *  * @return number of bytes written, -1 on error. */intwrsamp(int fd, SP16 *buf, int len){  int ret;#ifndef WORDS_BIGENDIAN  /* swap byte order to BIG ENDIAN */  swap_sample_bytes(buf, len);#endif  ret = write(fd, buf, len * sizeof(SP16));#ifndef WORDS_BIGENDIAN  /* undo byte swap */  swap_sample_bytes(buf, len);#endif  return(ret);}

⌨️ 快捷键说明

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