1 #ifndef ZEP_AUDIO_PCM_FORMAT_HPP_ 2 #define ZEP_AUDIO_PCM_FORMAT_HPP_ 27 PcmFormat(
int sampling_rate,
unsigned channel_mask) noexcept {
48 kLeftChannel = (1u << 0),
49 kRightChannel = (1u << 1),
50 kStereo = kLeftChannel | kRightChannel,
66 channel_mask_ = new_value;
74 auto mask = channel_mask_;
75 int num_of_channels = 0;
82 return num_of_channels;
93 return sampling_rate_ == other.sampling_rate_ &&
94 channel_mask_ == other.channel_mask_;
105 return !(*
this == other);
112 int sampling_rate_ = 0;
117 unsigned channel_mask_ = 0u;
123 #endif // ZEP_AUDIO_PCM_FORMAT_HPP_ ZEP SDK用名前空間
Definition: FactoryInterface.hpp:10