📄 sndio.c
字号:
/* sndio.c -- read/write sound file data *//* CHANGELOG * * 29Jun95 RBD ULAW fixed problems with signed chars *//* Standard includes */#include "stdio.h"#include "memory.h"#ifndef mips#include "stdlib.h"#endif#include "snd.h"#ifdef LINUX#include "sys/file.h"#else/* #include <unistd.h> */#ifdef WIN32#include <sys/stat.h>#include "io.h"#elif defined(__FreeBSD__)#include <sys/stat.h>#else#endif#endif//#include "audio.h"/* was "#ifndef WIN32" */#if !defined(WIN32) && !defined(IRIX) && !defined(SGI)void _swab(char *to, char *from, long length){ short *to16 = (short *) to; short *from16 = (short *) from; int i = 1; while (i < length) { short data = *from16++; *to16++ = (data << 8) | ((data >> 8) & 0xFF); i += 2; }}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -