|
Odamex
Setting the Standard in Multiplayer Doom
|
00001 // Emacs style mode select -*- C++ -*- 00002 //----------------------------------------------------------------------------- 00003 // 00004 // $Id: i_music.h 1788 2010-08-24 04:42:57Z russellrice $ 00005 // 00006 // Copyright (C) 2006-2010 by The Odamex Team. 00007 // 00008 // This program is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU General Public License 00010 // as published by the Free Software Foundation; either version 2 00011 // of the License, or (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 // 00018 // DESCRIPTION: 00019 // SDL music handler 00020 // 00021 //----------------------------------------------------------------------------- 00022 00023 00024 #ifndef __I_MUSIC_H__ 00025 #define __I_MUSIC_H__ 00026 00027 00028 00029 #include "doomstat.h" 00030 00031 // 00032 // MUSIC I/O 00033 // 00034 void I_InitMusic(void); 00035 void STACK_ARGS I_ShutdownMusic(void); 00036 // Volume. 00037 void I_SetMusicVolume (float volume); 00038 // PAUSE game handling. 00039 void I_PauseSong(int handle); 00040 void I_ResumeSong(int handle); 00041 // Registers a song handle to song data. 00042 int I_RegisterSong(char *data, size_t length); 00043 // Called by anything that wishes to start music. 00044 // plays a song, and when the song is done, 00045 // starts playing it again in an endless loop. 00046 // Horrible thing to do, considering. 00047 void 00048 I_PlaySong 00049 ( int handle, 00050 int looping ); 00051 // Stops a song over 3 seconds. 00052 void I_StopSong(int handle); 00053 // See above (register), then think backwards 00054 void I_UnRegisterSong(int handle); 00055 00056 #endif //__I_MUSIC_H__ 00057