You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
311B

  1. #pragma once
  2. #include <stdlib.h>
  3. namespace rack {
  4. /** Useful for storing arrays of samples in ring buffers and casting them to `float*` to be used by interleaved processors, like SampleRateConverter */
  5. template <size_t CHANNELS>
  6. struct Frame {
  7. float samples[CHANNELS];
  8. Frame() {}
  9. };
  10. } // namespace rack