Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a81f0d6 authored by Shunkai Yao's avatar Shunkai Yao
Browse files

Add Custom preset for equalizer effect to fix effect STS test case

Bug: 340810158
Test: run CtsSecurityTestCases -t android.security.cts.EffectBundleTest
Change-Id: I8e8d8d03360a6ef91ed1efa24624c718a1071b0a
parent 0ab78043
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -65,9 +65,9 @@ constexpr inline std::array<std::array<int16_t, MAX_NUM_BANDS>, MAX_NUM_PRESETS>
         {5, 3, -1, 3, 5}}}; /* Rock Preset */

static const std::vector<Equalizer::Preset> kEqPresets = {
        {0, "Normal"},      {1, "Classical"}, {2, "Dance"}, {3, "Flat"}, {4, "Folk"},
        {5, "Heavy Metal"}, {6, "Hip Hop"},   {7, "Jazz"},  {8, "Pop"},  {9, "Rock"}};

        {-1, "Custom"}, {0, "Normal"}, {1, "Classical"},   {2, "Dance"},
        {3, "Flat"},    {4, "Folk"},   {5, "Heavy Metal"}, {6, "Hip Hop"},
        {7, "Jazz"},    {8, "Pop"},    {9, "Rock"}};

const std::vector<Range::EqualizerRange> kEqRanges = {
        MAKE_RANGE(Equalizer, preset, 0, MAX_NUM_PRESETS - 1),