Skip to content

Commit

Permalink
Apply clang-tidy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Feb 17, 2024
1 parent 11be6a5 commit 1583380
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hades/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ auto processor = grit::Hades{};
auto patch = daisy::patch_sm::DaisyPatchSM{};
auto button = daisy::Switch{};
auto toggle = daisy::Switch{};
auto io_buffer = etl::array<float, blockSize * 2U>{};
auto buffer = etl::array<float, blockSize * 2U>{};

auto audioCallback(daisy::AudioHandle::InputBuffer in, daisy::AudioHandle::OutputBuffer out, size_t size) -> void
{
Expand All @@ -29,7 +29,7 @@ auto audioCallback(daisy::AudioHandle::InputBuffer in, daisy::AudioHandle::Outpu
}

// Copy to interleaved
auto io = grit::StereoBlock<float>{io_buffer.data(), size};
auto io = grit::StereoBlock<float>{buffer.data(), size};
for (auto i{0U}; i < size; ++i) {
io(0, i) = in[0][i];
io(1, i) = in[1][i];
Expand Down Expand Up @@ -66,8 +66,8 @@ auto audioCallback(daisy::AudioHandle::InputBuffer in, daisy::AudioHandle::Outpu
auto main() -> int
{
hades::patch.Init();
hades::button.Init(hades::patch.B7);
hades::toggle.Init(hades::patch.B8);
hades::button.Init(daisy::patch_sm::DaisyPatchSM::B7);
hades::toggle.Init(daisy::patch_sm::DaisyPatchSM::B8);

hades::processor.prepare(hades::sampleRate, hades::blockSize);

Expand Down

0 comments on commit 1583380

Please sign in to comment.