StreamInfo.h 561 B

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