SBSPSS/source/sound/spu.h

89 lines
1.7 KiB
C
Raw Normal View History

2000-10-05 16:16:09 +02:00
/*=========================================================================
spu.h
Author: PKG
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __SOUND_SPU_H__
#define __SOUND_SPU_H__
/*----------------------------------------------------------------------
Includes
-------- */
/* Std Lib
------- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
2000-10-10 18:49:01 +02:00
typedef struct ReverbDetails
{
long m_type;
long m_delay;
short m_depth;
long m_feedback;
};
2000-10-05 16:16:09 +02:00
class CSpuSound
{
public:
2000-10-10 18:49:01 +02:00
enum
{
REVERB_MAX_DEPTH=0x7fff,
REVERB_MIN_DEPTH=-0x8000,
REVERB_MIN_MODE_DELAY=0,
REVERB_MAX_MODE_DELAY=127,
REVERB_MIN_MODE_FEEDBACK=0,
REVERB_MAX_MODE_FEEDBACK=127,
};
2000-10-05 16:16:09 +02:00
void initialise();
void shutdown();
2000-10-10 18:49:01 +02:00
void setReverbActive(int _active);
void setReverbDetails(ReverbDetails *_details);
2000-10-05 16:16:09 +02:00
private:
enum
{
MAX_SOUND_BANKS=4,
2001-01-30 22:38:06 +01:00
MAX_SPU_MANAGEMENT=MAX_SOUND_BANKS+110,
2000-10-05 16:16:09 +02:00
};
static char s_spuManagementTable[];
2000-10-10 18:49:01 +02:00
int m_reverbActive;
ReverbDetails m_currentDetails;
2000-10-05 16:16:09 +02:00
};
/*----------------------------------------------------------------------
Globals
------- */
/*----------------------------------------------------------------------
Functions
--------- */
/*---------------------------------------------------------------------- */
#endif /* __SOUND_SPU_H__ */
/*===========================================================================
end */