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

📄 hw3sound.h

📁 The source code of Doom legacy for windows
💻 H
字号:
// Emacs style mode select   -*- C++ -*-//-----------------------------------------------------------------------------//// $Id: hw3sound.h,v 1.1 2001/04/04 19:41:16 judgecutor Exp $//// Copyright (C) 2001 by DooM Legacy Team.//// 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.////// $Log: hw3sound.h,v $// Revision 1.1  2001/04/04 19:41:16  judgecutor// Initial release of 3D Sound Support//////// DESCRIPTION://      High-level functions of hardware 3D sound////-----------------------------------------------------------------------------#ifndef __HW3_SOUND_H__#define __HW3_SOUND_H__#include "hw3dsdrv.h"//#include "../s_sound.h"//#include "../p_mobj.h"// Default sound mode (original stereo mode)enum { HWS_DEFAULT_MODE = 0 };extern int  hws_mode;           // Current sound modeextern int  HW3S_Init(I_Error_t FatalErrorFunction, snddev_t *snd_dev);extern void HW3S_Shutdown(void);extern int  HW3S_GetVersion(void);// General case - start 3D or 2D sourceextern void HW3S_StartSound(void *origin, int sfx_id);// Special cases of 3D sourcesextern void S_StartAmbientSound(int sfx_id, int volume);extern void S_StartAttackSound(void *origin, int sfx_id);extern void S_StartScreamSound(void *origin, int sfx_id);extern void HW3S_StopSound(void *origin);extern void HW3S_StopSounds(void);extern void HW3S_BeginFrameUpdate();extern void HW3S_EndFrameUpdate();//extern void HW3S_UpdateListener(mobj_t *listener);extern void HW3S_UpdateSources(void);extern void HW3S_SetSfxVolume(int volume);// Utility functionsextern int  HW3S_SoundIsPlaying(int handle);extern void HW3S_SetSourcesNum(void);extern int  HW3S_SoundPlaying(void *origin, int id);#endif // __HW3_SOUND_H__

⌨️ 快捷键说明

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