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

📄 sp_ntoh.c

📁 speech signal process tools
💻 C
字号:
#include <stdio.h>#include <string.h>#define SPHERE_LIBRARY_CODE#include <sp/sphere.h>long sp_ntohl(long t){    static enum SP_sample_byte_fmt sbf = SP_sbf_null;    if (sbf == SP_sbf_null)	sbf = get_natural_sbf(4);    if (sbf == SP_sbf_3210)	 return(t);    if (sbf == SP_sbf_1032){	swap_short(t);	return(t);    }    fprintf(stderr,	    "Error: sp_ntohl(%lx) Failed, Contact the SPHERE maintainer\n",	    t);    exit(-1);}short sp_htons(short t){    static enum SP_sample_byte_fmt sbf = SP_sbf_null;    if (sbf == SP_sbf_null)	sbf = get_natural_sbf(2);    if (sbf == SP_sbf_10)	 return(t);    swap_bytes(t);    return(t);}

⌨️ 快捷键说明

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