📄 all.h
字号:
/* all.h Data types used throughout the maplay code. *//* * @(#) all.h 1.6, last edit: 6/17/94 15:40:44 * @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de) * @(#) Berlin University of Technology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#ifndef ALL_H#define ALL_H#ifdef __WIN32__#include <wtypes.h>#endif// real numbertypedef float real; // float should be enough// Signed & unsigned integers, define SIXTEEN_BIT_COMPILER if the// default integer size is 16 bits#ifdef SIXTEEN_BIT_COMPILERtypedef long int32; // 32 Bit signed integertypedef unsigned long uint32; // 32 Bit unsigned integertypedef int int16; // 16 Bit signed integertypedef unsigned int uint16; // 16 Bit unsigned integer#elsetypedef int int32; // 32 Bit signed integertypedef unsigned uint32; // 32 Bit unsigned integertypedef signed short int16; // 16 Bit signed integertypedef unsigned short uint16; // 16 Bit unsigned integer#endif // SIXTEEN_BIT_COMPILER#ifdef ULAWtypedef unsigned char ulawsample; // u-law byte#endif // ULAW// mutex type (only for user seekable or stoppable streams)#ifdef SEEK_STOP#ifdef __WIN32__typedef HANDLE _Mutex;#else#ifdef BEOStypedef BLocker * _Mutex;#endif // BEOS#endif // __WIN32__#endif // SEEK_STOP#ifdef NObooltypedef int32 bool;#define TRUE 1#define FALSE 0#endif // NOboolenum e_channels { both, left, right, downmix };// What character marks the end of a directory entry? For DOS and// Windows, it is "\"; in UNIX it is "/".#if defined(__WIN32__) || defined(OS2) || defined(__DOS__)#define DIR_MARKER '\\'#define DIR_MARKER_STR "\\"#else#define DIR_MARKER '/'#define DIR_MARKER_STR "/"#endif // __WIN32__#endif // ALL_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -