CTCSS bugfix, reading of title in wav files

Added wav file title (INFO chunk) display in soundboard UI
Added CTCSS frequency next to PL code
Increased CTCSS tone amplitude
Added Family Radio Service channels file FRS.TXT
This commit is contained in:
furrtek 2017-03-11 00:59:04 +00:00
parent 66b58ce433
commit 6ac911feb7
6 changed files with 119 additions and 43 deletions

View file

@ -90,7 +90,7 @@ public:
virtual ~WAVFileReader() = default;
int open(const std::filesystem::path& path);
bool open(const std::filesystem::path& path);
void rewind();
uint32_t ms_duration();
//int seek_mss(const uint16_t minutes, const uint8_t seconds, const uint32_t samples);
@ -98,6 +98,7 @@ public:
uint32_t sample_rate();
uint32_t data_size();
uint16_t bits_per_sample();
std::string title();
private:
struct fmt_pcm_t {
@ -130,6 +131,7 @@ private:
uint32_t bytes_per_sample { };
uint32_t data_size_ { 0 };
uint32_t sample_rate_ { };
std::string title_string { };
std::filesystem::path last_path { };
};