diff options
author | aap <aap@papnet.eu> | 2019-07-05 14:35:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 14:35:06 +0200 |
commit | 4d0e743232adae9a474b0c9de513441af73885fc (patch) | |
tree | 86d117096a709da2f395c3c6145fc1f7791e3140 /src/audio/SampleManager.h | |
parent | implemented some CVehicle functions (diff) | |
parent | Merge branch 'master' into audio3 (diff) | |
download | re3-4d0e743232adae9a474b0c9de513441af73885fc.tar re3-4d0e743232adae9a474b0c9de513441af73885fc.tar.gz re3-4d0e743232adae9a474b0c9de513441af73885fc.tar.bz2 re3-4d0e743232adae9a474b0c9de513441af73885fc.tar.lz re3-4d0e743232adae9a474b0c9de513441af73885fc.tar.xz re3-4d0e743232adae9a474b0c9de513441af73885fc.tar.zst re3-4d0e743232adae9a474b0c9de513441af73885fc.zip |
Diffstat (limited to 'src/audio/SampleManager.h')
-rw-r--r-- | src/audio/SampleManager.h | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/src/audio/SampleManager.h b/src/audio/SampleManager.h index ae036947..1bee1775 100644 --- a/src/audio/SampleManager.h +++ b/src/audio/SampleManager.h @@ -1,11 +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 |