📄 s_sound.h
字号:
// Emacs style mode select -*- C++ -*- //-----------------------------------------------------------------------------//// $Id: s_sound.h,v 1.2 2003/09/08 22:34:31 jasonk Exp $//// Copyright (C) 1993-1996 by id Software, Inc.//// This source is available for distribution and/or modification// only under the terms of the DOOM Source Code License as// published by id Software. All rights reserved.//// The source is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License// for more details.//// DESCRIPTION:// The not so system specific sound interface.////-----------------------------------------------------------------------------#ifndef __S_SOUND__#define __S_SOUND__#ifdef __GNUG__#pragma interface#endif//// Initializes sound stuff, including volume// Sets channels, SFX and music volume,// allocates channel buffer, sets S_sfx lookup.//voidS_Init( int sfxVolume, int musicVolume );//// Per level startup code.// Kills playing sounds at start of level,// determines music if any, changes music.//void S_Start(void);//// Start sound for thing at <origin>// using <sound_id> from sounds.h//voidS_StartSound( void* origin, int sound_id );// Will start a sound at a given volume.voidS_StartSoundAtVolume( void* origin, int sound_id, int volume );// Stop sound for thing at <origin>void S_StopSound(void* origin);// Start music using <music_id> from sounds.hvoid S_StartMusic(int music_id);// Start music using <music_id> from sounds.h,// and set whether loopingvoidS_ChangeMusic( int music_id, int looping );// Stops the music fer sure.void S_StopMusic(void);// Stop and resume music, during game PAUSE.void S_PauseSound(void);void S_ResumeSound(void);//// Updates music & sounds//void S_UpdateSounds(void* listener);void S_SetMusicVolume(int volume);void S_SetSfxVolume(int volume);#endif//-----------------------------------------------------------------------------//// $Log: s_sound.h,v $// Revision 1.2 2003/09/08 22:34:31 jasonk// Updated files because this fucker won't build for no fucking good reason.//// Revision 1.1.1.1 2003/09/04 21:08:13 jasonk// Initial import//// Revision 1.1 2000/12/08 21:07:54 jeffw// nxdoom initial entry -- No nxdoom/Makefile so it won't build automatically//////-----------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -