aboutsummaryrefslogtreecommitdiffstats
path: root/core/device.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-08-01 13:06:14 -0700
committerChris Robinson <[email protected]>2022-08-02 18:26:49 -0700
commita1faa5d311e6d4f9daad601e181686486a8efd90 (patch)
tree5676f2996448a1750d8ef6aebc9a3001a4c19c3d /core/device.h
parent810821a2216ac786eac602b47c21e638a35f4ace (diff)
Change an inline function to a class method
Diffstat (limited to 'core/device.h')
-rw-r--r--core/device.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/device.h b/core/device.h
index 4b303579..0af7b0e9 100644
--- a/core/device.h
+++ b/core/device.h
@@ -285,6 +285,13 @@ struct DeviceBase {
#endif
void handleDisconnect(const char *msg, ...);
+ /**
+ * Returns the index for the given channel name (e.g. FrontCenter), or
+ * INVALID_CHANNEL_INDEX if it doesn't exist.
+ */
+ uint channelIdxByName(Channel chan) const noexcept
+ { return RealOut.ChannelIndex[chan]; }
+
DISABLE_ALLOC()
private:
@@ -298,13 +305,6 @@ private:
#define RECORD_THREAD_NAME "alsoft-record"
-
-/**
- * Returns the index for the given channel name (e.g. FrontCenter), or
- * INVALID_CHANNEL_INDEX if it doesn't exist.
- */
-inline uint GetChannelIdxByName(const RealMixParams &real, Channel chan) noexcept
-{ return real.ChannelIndex[chan]; }
#define INVALID_CHANNEL_INDEX ~0u
#endif /* CORE_DEVICE_H */