FastPath: post clang-tidy cleanup
Test: atest AudioTrackTest AudioRecordTest
Bug: 284390461
Merged-In: I2b58bbbab817a1aa8768cc9d1f1fedf1c8035120
Change-Id: I2b58bbbab817a1aa8768cc9d1f1fedf1c8035120
(cherry picked from commit fb81747f310bd5578cdd4ab4627e540512491caa)
diff --git a/services/audioflinger/fastpath/FastMixerState.h b/services/audioflinger/fastpath/FastMixerState.h
index fdf3eaa..c70e42a 100644
--- a/services/audioflinger/fastpath/FastMixerState.h
+++ b/services/audioflinger/fastpath/FastMixerState.h
@@ -37,7 +37,7 @@
// The provider implementation is responsible for validating that the return value is in range.
virtual gain_minifloat_packed_t getVolumeLR() = 0;
protected:
- VolumeProvider() { }
+ VolumeProvider() = default;
virtual ~VolumeProvider() = default;
};
@@ -63,12 +63,12 @@
// Represents a single state of the fast mixer
struct FastMixerState : FastThreadState {
- FastMixerState();
+ FastMixerState();
// These are the minimum, maximum, and default values for maximum number of fast tracks
- static const unsigned kMinFastTracks = 2;
- static const unsigned kMaxFastTracks = 32;
- static const unsigned kDefaultFastTracks = 8;
+ static constexpr unsigned kMinFastTracks = 2;
+ static constexpr unsigned kMaxFastTracks = 32;
+ static constexpr unsigned kDefaultFastTracks = 8;
static unsigned sMaxFastTracks; // Configured maximum number of fast tracks
static pthread_once_t sMaxFastTracksOnce; // Protects initializer for sMaxFastTracks