2024-07-01 17:52:11 +00:00
|
|
|
/**
|
|
|
|
* @file sound.h
|
2024-07-07 20:53:08 +00:00
|
|
|
*
|
|
|
|
* @brief Sound playback.
|
2024-07-01 17:52:11 +00:00
|
|
|
*/
|
|
|
|
#ifndef SOUND_H
|
|
|
|
#define SOUND_H
|
|
|
|
|
|
|
|
#include "common.h"
|
2024-07-04 19:29:30 +00:00
|
|
|
#include <util.h>
|
|
|
|
#include <alo.h>
|
2024-07-01 17:52:11 +00:00
|
|
|
|
2024-07-04 19:29:30 +00:00
|
|
|
enum SFXID
|
|
|
|
{
|
|
|
|
// todo
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Ambient sound.
|
|
|
|
*/
|
|
|
|
struct AMB
|
|
|
|
{
|
|
|
|
SFXID sfxid;
|
|
|
|
int iSerial;
|
|
|
|
void *bnk;
|
|
|
|
AMB **ppamb;
|
|
|
|
float tStarted;
|
|
|
|
float uVolAtSource;
|
|
|
|
uint sfxh;
|
|
|
|
undefined4 unk_1;
|
|
|
|
VECTOR pos;
|
|
|
|
ALO *palo;
|
|
|
|
float sStart;
|
|
|
|
float sFull;
|
|
|
|
int fContinuous;
|
|
|
|
int fOutOfRange;
|
|
|
|
int fAttached;
|
|
|
|
int fStopped;
|
|
|
|
float volAttenuated;
|
|
|
|
float pan;
|
|
|
|
float frq;
|
|
|
|
float rDoppler;
|
|
|
|
int dnDoppler;
|
|
|
|
int fPitchOrig;
|
|
|
|
int ptchOrig;
|
|
|
|
float tNext;
|
|
|
|
LM lmRepeat;
|
|
|
|
LM lmRepDist;
|
|
|
|
undefined4 unk_2;
|
|
|
|
undefined4 unk_3;
|
|
|
|
undefined4 unk_4;
|
|
|
|
};
|
2024-07-01 17:52:11 +00:00
|
|
|
|
2024-07-01 22:16:20 +00:00
|
|
|
#endif // SOUND_H
|