Audacity 3.2.0
MeterValueProvider.cpp
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*!********************************************************************
3
4 Audacity: A Digital Audio Editor
5
6 MeterValueProvider.cpp
7
8 Matthieu Hodgkinson
9
10**********************************************************************/
11#include "MeterValueProvider.h"
14
15#include <cassert>
16
17std::unique_ptr<MeterValueProvider>
19{
20 switch (direction)
21 {
23 return std::make_unique<UpwardMeterValueProvider>();
25 return std::make_unique<DownwardMeterValueProvider>();
26 default:
27 assert(false);
28 return nullptr;
29 }
30}
static std::unique_ptr< MeterValueProvider > Create(Direction direction)