[Scummvm-git-logs] scummvm master -> 6f151dc493e9303fd4cacdf618b81b9cfc7997db
bluegr
noreply at scummvm.org
Wed Jul 30 18:21:45 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
6f151dc493 AUDIO: Add comparison operators to SoundHandle
Commit: 6f151dc493e9303fd4cacdf618b81b9cfc7997db
https://github.com/scummvm/scummvm/commit/6f151dc493e9303fd4cacdf618b81b9cfc7997db
Author: Helco (hermann.noll at hotmail.com)
Date: 2025-07-30T21:21:41+03:00
Commit Message:
AUDIO: Add comparison operators to SoundHandle
Changed paths:
audio/mixer.h
diff --git a/audio/mixer.h b/audio/mixer.h
index bb5be27bc52..4e34879c23a 100644
--- a/audio/mixer.h
+++ b/audio/mixer.h
@@ -50,6 +50,17 @@ class SoundHandle {
friend class Channel;
friend class MixerImpl;
uint32 _val = 0xffffffff;
+
+public:
+ /**
+ * Determine whether two handles are the same.
+ */
+ bool operator==(const SoundHandle &h) const { return _val == h._val; }
+
+ /**
+ * Determine whether two handles are not the same.
+ */
+ bool operator!=(const SoundHandle &h) const { return _val != h._val; }
};
/**
More information about the Scummvm-git-logs
mailing list