40 const auto& waveData = scc.getWaveData();
41 for (auto [channelNr, channelWaveData] : enumerate(waveData)) {
42 auto getFloatData = [](void* data, int idx) {
43 return float(static_cast<const int8_t*>(data)[idx]);
45 const auto scale = 2.0f;
46 auto size = scale * gl::vec2{32.0f, 64.0f} + 2.0f * gl::vec2(ImGui::GetStyle().FramePadding);
47 ImGui::PlotHistogram(
"",
49 const_cast<int8_t*>(channelWaveData.data()),
50 channelWaveData.size(),
54 if (channelNr < (waveData.size() - 1)) ImGui::SameLine();