Lines Matching full:average
76 int avg_i = level_i->Average(); in TEST()
77 int avg_f = level_f->Average(); in TEST()
85 EXPECT_EQ(3, level->Average()); // -3 dBFS in TEST()
92 EXPECT_EQ(3, stats.average); // -3 dBFS in TEST()
99 EXPECT_EQ(9, level->Average()); // -9 dBFS in TEST()
105 EXPECT_EQ(127, level->Average()); in TEST()
112 EXPECT_EQ(127, stats.average); in TEST()
118 EXPECT_EQ(127, level.Average()); // Return minimum if no samples are given. in TEST()
124 EXPECT_EQ(127, stats.average); in TEST()
131 level->Average(); in TEST()
132 EXPECT_EQ(127, level->Average()); // Stats should be reset at this point. in TEST()
139 EXPECT_EQ(127, level->Average()); // Stats should be reset at this point. in TEST()
151 EXPECT_EQ(6, level->Average()); // Average RMS halved due to the silence. in TEST()
155 // finally 1 second of half-scale again. Expect the average to be -9 dBFS due
168 EXPECT_EQ(9, stats.average); in TEST()
181 EXPECT_EQ(9, stats.average); in TEST()