Common/WAVWriter: Add accessors

This commit is contained in:
Connor McLaughlin 2020-03-21 12:30:04 +10:00
parent 156a360d86
commit 64a96ad718
1 changed files with 3 additions and 0 deletions

View File

@ -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);