2010-05-25 10:56:00 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 2010 EDuke32 developers and contributors
|
|
|
|
|
|
|
|
This file is part of EDuke32.
|
|
|
|
|
|
|
|
EDuke32 is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License version 2
|
|
|
|
as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
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, write to the Free Software
|
2014-07-20 08:55:56 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2010-05-25 10:56:00 +00:00
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#ifndef sounds_mapster32_h_
|
|
|
|
#define sounds_mapster32_h_
|
2009-03-15 22:58:20 +00:00
|
|
|
|
|
|
|
#include "build.h"
|
2013-09-08 20:18:56 +00:00
|
|
|
#include "sounds_common.h"
|
2009-03-15 22:58:20 +00:00
|
|
|
|
2009-07-09 02:29:48 +00:00
|
|
|
#pragma pack(push,1)
|
|
|
|
|
2009-03-15 22:58:20 +00:00
|
|
|
/// vvv sound structs from duke3d.h
|
|
|
|
typedef struct {
|
|
|
|
int32_t voice;
|
2012-03-10 21:22:44 +00:00
|
|
|
int32_t ow;
|
2009-03-15 22:58:20 +00:00
|
|
|
} SOUNDOWNER;
|
|
|
|
|
|
|
|
typedef struct {
|
2015-01-25 12:17:59 +00:00
|
|
|
char *filename, *ptr;
|
2009-03-15 22:58:20 +00:00
|
|
|
int32_t length, num, soundsiz;
|
|
|
|
SOUNDOWNER SoundOwner[4];
|
|
|
|
int16_t ps,pe,vo;
|
|
|
|
char pr,m;
|
|
|
|
volatile char lock;
|
|
|
|
char *definedname; // new
|
|
|
|
} sound_t;
|
|
|
|
|
2011-10-30 19:48:46 +00:00
|
|
|
#define MAXSOUNDS 4096
|
2009-11-01 20:30:09 +00:00
|
|
|
extern sound_t g_sounds[MAXSOUNDS];
|
|
|
|
|
2012-03-10 21:21:42 +00:00
|
|
|
extern int32_t g_numEnvSoundsPlaying;
|
|
|
|
extern int32_t NumVoices;
|
|
|
|
|
2009-03-15 22:58:20 +00:00
|
|
|
int32_t S_SoundStartup(void);
|
|
|
|
void S_SoundShutdown(void);
|
2009-08-06 10:12:13 +00:00
|
|
|
int32_t S_PlaySound3D(int32_t, int32_t, const vec3_t*);
|
2009-03-15 22:58:20 +00:00
|
|
|
void S_PlaySound(int32_t);
|
2009-03-17 21:57:30 +00:00
|
|
|
int32_t A_PlaySound(uint32_t num, int32_t i);
|
2009-03-15 22:58:20 +00:00
|
|
|
void S_StopSound(int32_t num);
|
|
|
|
void S_StopEnvSound(int32_t num,int32_t i);
|
2010-05-02 23:27:30 +00:00
|
|
|
void S_Update(void);
|
2009-03-15 22:58:20 +00:00
|
|
|
int32_t A_CheckSoundPlaying(int32_t i, int32_t num);
|
|
|
|
int32_t S_CheckSoundPlaying(int32_t i, int32_t num);
|
|
|
|
void S_ClearSoundLocks(void);
|
2014-07-28 06:45:18 +00:00
|
|
|
int32_t S_SoundsPlaying(int32_t i);
|
|
|
|
int32_t S_InvalidSound(int32_t num);
|
|
|
|
int32_t S_SoundFlags(int32_t num);
|
2009-03-15 22:58:20 +00:00
|
|
|
|
2009-07-09 02:29:48 +00:00
|
|
|
#pragma pack(pop)
|
|
|
|
|
2009-03-15 22:58:20 +00:00
|
|
|
#endif
|