From 64a96ad718b3514188ce8eead7d480ad3cfaa920 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 21 Mar 2020 12:30:04 +1000 Subject: [PATCH] Common/WAVWriter: Add accessors --- src/common/wav_writer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/wav_writer.h b/src/common/wav_writer.h index 7c2647843..d81c030e3 100644 --- a/src/common/wav_writer.h +++ b/src/common/wav_writer.h @@ -10,6 +10,9 @@ public: WAVWriter(); ~WAVWriter(); + ALWAYS_INLINE u32 GetSampleRate() const { return m_sample_rate; } + ALWAYS_INLINE u32 GetNumChannels() const { return m_num_channels; } + ALWAYS_INLINE u32 GetNumFrames() const { return m_num_frames; } ALWAYS_INLINE bool IsOpen() const { return (m_file != nullptr); } bool Open(const char* filename, u32 sample_rate, u32 num_channels);