2009-03-15 22:58:20 +00:00
|
|
|
#ifndef __sounds_mapster32_h__
|
|
|
|
#define __sounds_mapster32_h__
|
|
|
|
|
|
|
|
#include "build.h"
|
|
|
|
|
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;
|
|
|
|
int32_t i;
|
|
|
|
} SOUNDOWNER;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int32_t length, num, soundsiz;
|
|
|
|
char *filename, *ptr, *filename1;
|
|
|
|
SOUNDOWNER SoundOwner[4];
|
|
|
|
int16_t ps,pe,vo;
|
|
|
|
char pr,m;
|
|
|
|
volatile char lock;
|
|
|
|
char *definedname; // new
|
|
|
|
} sound_t;
|
|
|
|
|
2009-11-01 20:30:09 +00:00
|
|
|
#define MAXSOUNDS 2560
|
|
|
|
extern sound_t g_sounds[MAXSOUNDS];
|
|
|
|
|
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);
|
|
|
|
void S_Pan3D(void);
|
|
|
|
int32_t A_CheckSoundPlaying(int32_t i, int32_t num);
|
|
|
|
int32_t S_CheckSoundPlaying(int32_t i, int32_t num);
|
|
|
|
void S_ClearSoundLocks(void);
|
|
|
|
|
2009-07-09 02:29:48 +00:00
|
|
|
#pragma pack(pop)
|
|
|
|
|
2009-03-15 22:58:20 +00:00
|
|
|
#endif
|