3 #include "combined/model/member.h" 5 #include "audio_file/audio_file.h" 20 enum class sample_rate {
28 void set_bit_depth(audio_file::bit_depth bit_depth);
29 audio_file::bit_depth get_bit_depth()
const;
31 void set_format(audio_file::format format);
32 audio_file::format get_format()
const;
34 void set_sample_rate(sample_rate sample_rate);
35 sample_rate get_sample_rate()
const;
37 void set_output_directory(std::string path);
38 std::string get_output_directory()
const;
40 void set_unique_id(std::string unique);
41 std::string get_unique_id()
const;
43 NOTIFYING_COPY_ASSIGN_DECLARATION(
output)
45 inline void swap(
output& other) noexcept {
47 swap(bit_depth_, other.bit_depth_);
48 swap(format_, other.format_);
49 swap(sample_rate_, other.sample_rate_);
50 swap(output_directory_, other.output_directory_);
51 swap(unique_id_, other.unique_id_);
54 audio_file::bit_depth bit_depth_ = audio_file::bit_depth::pcm24;
55 audio_file::format format_ = audio_file::format::wav;
56 sample_rate sample_rate_ = sample_rate::sr44_1KHz;
58 std::string output_directory_ =
"";
59 std::string unique_id_ =
"";
62 constexpr
auto get_sample_rate(output::sample_rate sr) {
64 case output::sample_rate::sr44_1KHz:
return 44100.0;
65 case output::sample_rate::sr48KHz:
return 48000.0;
66 case output::sample_rate::sr88_2KHz:
return 88200.0;
67 case output::sample_rate::sr96KHz:
return 96000.0;
68 case output::sample_rate::sr192KHz:
return 192000.0;
80 const output& output);
Definition: receiver.h:13
Definition: persistent.h:17
Definition: capsule_base.h:9