/* DE1: $Id: sv_sound.h 1713 2004-05-31 15:04:44Z skyjake $ * Copyright (C) 2003, 2004 Jaakko Keränen * * 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: http://www.opensource.org/ */ /* * sv_sound.h: Serverside Sound Management */ #ifndef __DOOMSDAY_SERVER_SOUND_H__ #define __DOOMSDAY_SERVER_SOUND_H__ // Sound packet (psv_sound) flags. #define SNDF_ORIGIN 0x01 // Sound has an origin. #define SNDF_SECTOR 0x02 // Originates from a degenmobj. #define SNDF_PLAYER 0x04 // Originates from a player. #define SNDF_VOLUME 0x08 // Volume included. #define SNDF_ID 0x10 // Mobj ID of the origin. #define SNDF_REPEATING 0x20 // Repeat sound indefinitely. #define SNDF_SHORT_SOUND_ID 0x40 // Sound ID is a short. // Stop Sound packet (psv_stop_sound) flags. #define STOPSNDF_SOUND_ID 0x01 #define STOPSNDF_ID 0x02 #define STOPSNDF_SECTOR 0x04 // Sv_Sound toPlr flags. #define SVSF_TO_ALL 0x00000010 #define SVSF_MASK 0x7fffffff void Sv_Sound(int sound_id, mobj_t *origin, int toPlr); void Sv_SoundAtVolume(int sound_id_and_flags, mobj_t *origin, float volume, int toPlr); void Sv_StopSound(int sound_id, mobj_t *origin); #endif