re3/src/audio/SampleManager.h

37 lines
744 B
C
Raw Normal View History

2019-06-15 22:20:55 +00:00
#pragma once
2019-07-02 18:35:47 +00:00
struct tSample {
int m_nOffset;
unsigned int m_nSize;
int m_nFrequency;
int m_nLoopStart;
int m_nLoopEnd;
};
2019-06-15 22:20:55 +00:00
2019-07-02 18:35:47 +00:00
class CSampleManager
{
2019-06-15 22:20:55 +00:00
public:
2019-06-30 21:58:24 +00:00
void ReleaseDigitalHandle();
2019-06-30 22:07:58 +00:00
void RequireDigitalHandle();
2019-07-02 18:35:47 +00:00
char AutoDetect3DProviders();
uint8 GetCDAudioDriveLetter();
void SetEffectsMasterVolume(uint8 volume);
void SetMusicMasterVolume(uint8 volume);
void SetEffectsFadeVol(uint8 volume);
void SetMusicFadeVol(uint8 volume);
void SetSpeakerConfig(uint32 config);
bool GetChannelUsedFlag(int32 id);
void StopChannel(int32 id);
static bool IsMP3RadioChannelAvailable();
2019-06-15 22:20:55 +00:00
};
2019-07-02 18:35:47 +00:00
extern uint32 &nNumOfMp3Files;
extern uint8 &num3DProvidersAvailable;
extern uint32* asName3DProviders;
2019-06-15 22:20:55 +00:00
extern CSampleManager &cSampleManager;