StreamInfo.h 448 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <memory>
  3. #include <string>
  4. #include <vector>
  5. namespace bell {
  6. enum class Channels { LEFT, RIGHT, LEFT_RIGHT };
  7. enum class SampleRate : uint32_t {
  8. SR_44100 = 44100,
  9. SR_48000 = 48000,
  10. };
  11. enum class BitWidth : uint32_t {
  12. BW_16 = 16,
  13. BW_24 = 24,
  14. BW_32 = 32,
  15. };
  16. typedef struct {
  17. float** data;
  18. BitWidth bitwidth;
  19. int numChannels;
  20. SampleRate sampleRate;
  21. size_t numSamples;
  22. } StreamInfo;
  23. }; // namespace bell