// // Copyright(C) 2023 by Ryan Krafnick // // 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. // // DESCRIPTION: // DSDA Ambient // #ifndef __DSDA_AMBIENT__ #define __DSDA_AMBIENT__ #ifdef __cplusplus extern "C" { #endif #include "p_mobj.h" typedef struct { char* sound_name; int sfx_id; float attenuation; float volume; int min_tics; int max_tics; } ambient_sfx_t; typedef struct { thinker_t thinker; mobj_t* mobj; ambient_sfx_t data; int wait_tics; } ambient_source_t; dboolean dsda_IsLoopingAmbientSFX(int sfx_id); void dsda_UpdateAmbientSource(ambient_source_t* source); void dsda_SpawnAmbientSource(mobj_t* mobj); void dsda_LoadAmbientSndInfo(void); #ifdef __cplusplus } #endif #endif