From 505911021afbdd4f32cf210d712c7e573934926a Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 26 Sep 2024 16:36:30 +0200 Subject: [PATCH] types.hh - move type 'Samplerate' from globals --- src/main_osp.hh | 2 -- src/types.hh | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main_osp.hh b/src/main_osp.hh index 5069d9f..88cef9c 100644 --- a/src/main_osp.hh +++ b/src/main_osp.hh @@ -7,8 +7,6 @@ #include "types.hh" namespace Heck { - using Samplerate = ld::SaiHandle::Config::SampleRate; - namespace Constants { namespace Hardware { constexpr int PIN_BUTTON_RECORD = 28; diff --git a/src/types.hh b/src/types.hh index b173ff1..e2974db 100644 --- a/src/types.hh +++ b/src/types.hh @@ -7,7 +7,7 @@ namespace Heck { - // Types + // fundamental types using u8 = uint8_t; using u16 = uint16_t; using u32 = uint32_t; @@ -24,6 +24,10 @@ namespace Heck { // namespace aliases namespace ld = daisy; namespace dsp = daisysp; + + // type aliases from libs + using Samplerate = ld::SaiHandle::Config::SampleRate; + } // namespace Heck