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

📄 dsl.h

📁 An interactive water fountain. A realistic water source in your pocket with full control. Contro
💻 H
字号:
/*Copyright (C) 2003-2004 Ryan C. Gordon. and James BentlerThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of 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 ofMERCHANTABILITY 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 Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.Originally written by Ryan C. Gordon. (icculus@clutteredmind.org)Adapted to work with JonoF's port by James Bentler (bentler@cs.umn.edu)*/#ifndef AUDIOLIB__DSL_H#define AUDIOLIB__DSL_H#define MONO_8BIT    0#define STEREO      1#define SIXTEEN_BIT 2enum DSL_ERRORS   {   DSL_Warning = -2,   DSL_Error = -1,   DSL_Ok = 0,   DSL_SDLInitFailure,   DSL_MixerActive,   DSL_MixerInitFailure   };extern int32_t DSL_ErrorCode;char *DSL_ErrorString( int32_t ErrorNumber );int32_t DisableInterrupts(void);	// simulated using critical sectionsint32_t RestoreInterrupts(int32_t);int32_t   DSL_Init(int32_t soundcard, int32_t mixrate, int32_t numchannels, int32_t samplebits, int32_t buffersize);void  DSL_StopPlayback( void );unsigned DSL_GetPlaybackRate( void );int32_t   DSL_BeginBufferedPlayback(char *BufferStart, int32_t (*CallBackFunc)(int32_t), int32_t buffersize, int32_t numdivisions);void  DSL_Shutdown( void );#endif

⌨️ 快捷键说明

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