diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-03-23 00:01:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-03-23 00:01:49 +0100 |
| commit | 9cacbd6bb24d04c1b4d2b1eae313687dda4fe63b (patch) | |
| tree | c6f08d599204012c13386d6f7f6e3f0e48789953 /src/lib/audio_mapping.h | |
| parent | 4063260e52dafe5a75a321ff273dba182fd2f6a9 (diff) | |
Cleanup: don't need to store _{input,output}_channels.
Diffstat (limited to 'src/lib/audio_mapping.h')
| -rw-r--r-- | src/lib/audio_mapping.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/audio_mapping.h b/src/lib/audio_mapping.h index 51ab0e1e5..0f59cc205 100644 --- a/src/lib/audio_mapping.h +++ b/src/lib/audio_mapping.h @@ -64,11 +64,11 @@ public: float get (int input_channel, dcp::Channel output_channel) const; int input_channels () const { - return _input_channels; + return _gain.size(); } int output_channels () const { - return _output_channels; + return _gain.empty() ? 0 : _gain[0].size(); } std::string digest () const; @@ -79,8 +79,6 @@ public: private: void setup (int input_channels, int output_channels); - int _input_channels = 0; - int _output_channels = 0; /** Linear gains */ std::vector<std::vector<float>> _gain; }; |
