int24_24_t.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 #include <audio/types.hpp>
8 
9 namespace audio {
17  class int24_24_t {
18  private:
19  uint8_t m_data[3];
20  public:
21  int24_24_t() {}
22  int24_24_t(int32_t _value) {
23  set(_value);
24  }
25  // transformation operator:
26  int24_24_t(const audio::int8_8_t& _val);
27  int24_24_t(const audio::int8_16_t& _val);
28  int24_24_t(const audio::int16_16_t& _val);
29  int24_24_t(const audio::int16_32_t& _val);
30  int24_24_t(const audio::int24_24_t& _val);
31  int24_24_t(const audio::int24_32_t& _val);
32  int24_24_t(const audio::int32_32_t& _val);
33  int24_24_t(const audio::int32_64_t& _val);
34  int24_24_t(const audio::int64_64_t& _val);
35  int24_24_t(const audio::float_t& _val);
36  int24_24_t(const audio::double_t& _val);
37  // set operator
38  int24_24_t(int64_t _value, int32_t _flotingPointPosition);
39  void set(int64_t _value, int32_t _flotingPointPosition);
40  void set(int32_t _value);
41  int32_t get() const;
42  };
43  std::ostream& operator <<(std::ostream& _os, const audio::int24_24_t& _obj);
44 }
45 
Definition: int32_32_t.hpp:15
Definition: int8_16_t.hpp:17
Definition: int64_64_t.hpp:10
Definition: int24_24_t.hpp:17
Definition: int24_32_t.hpp:17
Definition: int16_32_t.hpp:17
Definition: int16_16_t.hpp:17
Definition: float_t.hpp:11
Audio library namespace.
Definition: channel.hpp:70
Definition: int32_64_t.hpp:10
Definition: int8_8_t.hpp:15
Definition: double_t.hpp:10