aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/Audio/SoundEngine.h
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
commit7074f35e4ba831e358117842b99ee35b87f85ae5 (patch)
tree7d440d23473196af3056bf2ff4c59d9e740a06f5 /Minecraft.Client/Common/Audio/SoundEngine.h
parentd63f79325f85e014361eb8cf1e41eaebedb1ae71 (diff)
shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
Diffstat (limited to 'Minecraft.Client/Common/Audio/SoundEngine.h')
-rw-r--r--Minecraft.Client/Common/Audio/SoundEngine.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Minecraft.Client/Common/Audio/SoundEngine.h b/Minecraft.Client/Common/Audio/SoundEngine.h
index 92c99d23..8dc50e7c 100644
--- a/Minecraft.Client/Common/Audio/SoundEngine.h
+++ b/Minecraft.Client/Common/Audio/SoundEngine.h
@@ -78,8 +78,8 @@ typedef struct
{
F32 x,y,z,volume,pitch;
int iSound;
- bool bIs3D;
- bool bUseSoundsPitchVal;
+ bool bIs3D;
+ bool bUseSoundsPitchVal;
#ifdef _DEBUG
char chName[64];
#endif
@@ -103,7 +103,7 @@ public:
virtual void updateSystemMusicPlaying(bool isPlaying);
virtual void updateSoundEffectVolume(float fVal);
virtual void init(Options *);
- virtual void tick(shared_ptr<Mob> *players, float a); // 4J - updated to take array of local players rather than single one
+ virtual void tick(std::shared_ptr<Mob> *players, float a); // 4J - updated to take array of local players rather than single one
virtual void add(const wstring& name, File *file);
virtual void addMusic(const wstring& name, File *file);
virtual void addStreaming(const wstring& name, File *file);
@@ -123,7 +123,7 @@ private:
#else
int initAudioHardware(int iMinSpeakers) { return iMinSpeakers;}
#endif
-
+
int GetRandomishTrack(int iStart,int iEnd);
HMSOUNDBANK m_hBank;
@@ -165,4 +165,4 @@ private:
#ifdef __ORBIS__
int32_t m_hBGMAudio;
#endif
-};
+};