summaryrefslogtreecommitdiffstats
path: root/src/audio/SampleManager.h
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2019-07-02 20:35:47 +0200
committerFilip Gawin <filip.gawin@zoho.com>2019-07-04 22:20:05 +0200
commite3fcb686cc9a69a14ca10066efa330bbb9700fd6 (patch)
tree85bbd43be6faa68cba8707fe7b9a8dc8f5a86f51 /src/audio/SampleManager.h
parentRandomDisplacement (diff)
downloadre3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar.gz
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar.bz2
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar.lz
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar.xz
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.tar.zst
re3-e3fcb686cc9a69a14ca10066efa330bbb9700fd6.zip
Diffstat (limited to '')
-rw-r--r--src/audio/SampleManager.h30
1 files changed, 27 insertions, 3 deletions
diff --git a/src/audio/SampleManager.h b/src/audio/SampleManager.h
index e688b3fb..1bee1775 100644
--- a/src/audio/SampleManager.h
+++ b/src/audio/SampleManager.h
@@ -1,13 +1,37 @@
#pragma once
-class CSampleManager {
-public:
- static uint32 &nNumOfMp3Files;
+struct tSample {
+ int m_nOffset;
+ unsigned int m_nSize;
+ int m_nFrequency;
+ int m_nLoopStart;
+ int m_nLoopEnd;
+};
+class CSampleManager
+{
public:
void ReleaseDigitalHandle();
void RequireDigitalHandle();
+
+ 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();
};
+extern uint32 &nNumOfMp3Files;
+extern uint8 &num3DProvidersAvailable;
+extern uint32* asName3DProviders;
+
extern CSampleManager &cSampleManager; \ No newline at end of file