Add helper methods for the sound dose test API
Added methods for:
* getOutputRs2: returns the currently used RS2 value by the audioserver
* getCsd: returns the current CSD value from the audioserver
* forceUseFrameworkMel: will enable/disable the computation of the
MEL values by the framework/HAL
* forceComputeCsdOnAllDevice: computes CSD for all output playback
devices.
Test: TestApi
Bug: 248565894
Change-Id: Id34e7e26e57d47ee8ab5a45d08e46b7a3f298ddb
diff --git a/services/audioflinger/MelReporter.h b/services/audioflinger/MelReporter.h
index f73b3d6..b1abc59 100644
--- a/services/audioflinger/MelReporter.h
+++ b/services/audioflinger/MelReporter.h
@@ -39,7 +39,7 @@
}
/** Returns true if we should compute MEL for the given device. */
- static bool shouldComputeMelForDeviceType(audio_devices_t device);
+ bool shouldComputeMelForDeviceType(audio_devices_t device);
// For now only support internal MelReporting
[[nodiscard]] bool isHalReportingEnabled() const { return false; }