47 lines
No EOL
1.6 KiB
C++
47 lines
No EOL
1.6 KiB
C++
/************************************************************************
|
|
* 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. *
|
|
************************************************************************/
|
|
|
|
#define MAXSOUNDS 16
|
|
#define MAXSNDDATA 53
|
|
#define SYSOWN -1
|
|
|
|
// Sound Flags
|
|
#define SFL_CONTINUE 0x01
|
|
#define SFL_3D 0x02
|
|
#define SFL_RAY 0x04
|
|
#define SFL_FOLLOW 0x08
|
|
#define SFL_AUTOSTOP 0x10
|
|
#define SFL_OVERSOUND 0x20 // only one sound !
|
|
#define SFL_FADE 0x40
|
|
|
|
#define SFL_FIXED 0x00
|
|
#define SFL_BASIC SFL_3D
|
|
#define SFL_MULTI (SFL_3D|SFL_RAY|SFL_AUTOSTOP)
|
|
#define SFL_NORMAL (SFL_3D|SFL_RAY|SFL_AUTOSTOP|SFL_OVERSOUND)
|
|
#define SFL_AUTO (SFL_3D|SFL_RAY|SFL_FOLLOW|SFL_AUTOSTOP|SFL_OVERSOUND)
|
|
|
|
#define SM_MAXVOL 40 // 32 // 48
|
|
#define SM_NORMVOL 32 // 24
|
|
#define SM_LOWVOL 24 // 16
|
|
#define SM_VOLSHIFT 5
|
|
|
|
extern int sm_soundnum;
|
|
extern char sm_lrinverted;
|
|
extern char sm_soundok;
|
|
extern int sm_soundvol;
|
|
|
|
extern void initsounds();
|
|
extern void donesounds();
|
|
extern void soundmanager(long cx, long cy, int angle);
|
|
extern void loadsound(int sndnum, const char *wavname);
|
|
extern int play3Dsound(fixed x, fixed y, int sndnum, byte vol,
|
|
int owner, byte flags);
|
|
extern int playsound(int sndnum, byte lvol, byte rvol,
|
|
char desync, int owner, byte flags);
|
|
extern void ownerdead(int id);
|
|
extern char stopsound(int id);
|
|
extern void stopallsounds(); |